View source: R/util_remove_na_records.R
util_remove_na_records | R Documentation |
NA
in any of the given variablesremove all records, that have at least one NA
in any of the given variables
util_remove_na_records(study_data, vars = colnames(study_data))
study_data |
the study data frame |
vars |
the variables being checked for |
modified study_data data frame
## Not run:
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")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.