util_remove_na_records {dataquieR} | R Documentation |
remove all records, that have at least one NA
in any of the given variables
Description
remove all records, that have at least one NA
in any of the given variables
Usage
util_remove_na_records(study_data, vars = colnames(study_data))
Arguments
study_data |
the study data frame |
vars |
the variables being checked for |
Value
modified study_data data frame
See Also
Other data_management:
util_assign_levlabs()
,
util_check_data_type()
,
util_check_group_levels()
,
util_compare_meta_with_study()
,
util_dichotomize()
,
util_merge_data_frame_list()
,
util_rbind()
,
util_replace_hard_limit_violations()
,
util_study_var2factor()
,
util_table_of_vct()
Examples
## 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)
[Package dataquieR version 2.1.0 Index]