Answers for "r remove row with na"

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

Browse Popular Code Answers by Language