Answers for "remove rows with na values in 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
1

r remove rows where value is 0

data <- data[data$undesirable != 0,]
Posted by: Guest on July-12-2021

Code answers related to "remove rows with na values in r"

Browse Popular Code Answers by Language