Learn R Programming

supernova (version 3.0.0)

listwise_delete: Remove cases with missing values.

Description

Remove cases with missing values.

Usage

listwise_delete(obj, vars)

# S3 method for data.frame listwise_delete(obj, vars = names(obj))

# S3 method for lm listwise_delete(obj, vars = all.vars(formula(obj)))

Value

For data.frames, the vars are checked for missing values. If one is found on any of the variables, the entire row is removed (list-wise deletion). For linear models, the model is refit after the underlying data have been processed.

Arguments

obj

The data.frame or lm object to process.

vars

The variables to consider.