remove_incomplete_obs: remove_incomplete_obs

Description Usage Arguments Value See Also Examples

View source: R/remove_incomplete_obs.R

Description

Remove incomplete observations from a data frame
This function removes any rows that have an NA value in one or more of the specified columns

Usage

1

Arguments

d

data frame with first column as ID

cols

list of columns that cannot contain NA values

Value

data frame with rows removed

See Also

Other filter functions: colfilter, get_binary, get_categorical, get_check, get_continuous, min_cat_n, min_n, remove_outliers, rowfilter

Examples

1
2
3
4
## Not run: 
result <- remove_incomplete_obs(d, c("column1", "column2"))

## End(Not run)

HallLab/clarite documentation built on Oct. 27, 2020, 6:27 p.m.