drop_na: Remove NAs according to a strategy

Description Usage Arguments Value

Description

Remove NAs according to a strategy

Usage

1
drop_na(strategy = c("dependent", "predictors", "all", "none"), df, dependent)

Arguments

strategy

Character string denoting how NAs should be dealt with. "dependent" means rows with NA in the dependent variable are dropped. "predictors" means rows with NA in an independent variable are dropped. "all" means rows with NA in any column are dropped. "none" means NAs are ignored.

df

Data frame to remove NAs from

dependent

Dependent variable of the data frame

Value

A data.frame where strategy has been applied to remove data



Search within the crtests package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.