Answers for "remove na from vector r"

R
5

r remove na from dataset

new_df <- na.omit(df, c("myvar1", "myvar2")) # Remove NA on specific variables
Posted by: Guest on June-19-2020
0

remove na from vector r

x<-x[!is.na(x)]
Posted by: Guest on October-18-2021

Browse Popular Code Answers by Language