Answers for "how to remove na values from a vector in r"

R
6

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

Code answers related to "how to remove na values from a vector in r"

Browse Popular Code Answers by Language