util_remove_na_records: remove all records, that have at least one 'NA' in any of the...

View source: R/util_remove_na_records.R

util_remove_na_recordsR 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 NAs

Value

modified study_data data frame

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)

dataquieR documentation built on July 26, 2023, 6:10 p.m.