powered by
NA
remove all records, that have at least one NA in any of the given variables
util_remove_na_records(study_data, vars = colnames(study_data))
modified study_data data frame
the study data frame
the variables being checked for NAs
if (FALSE) { dta <- iris dim(util_remove_na_records(dta)) dta$Species[4:6] <- NA dim(util_remove_na_records(dta)) dim(util_remove_na_records(dta, c("Sepal.Length", "Petal.Length"))) }
Run the code above in your browser using DataLab