listwise_delete {supernova}R Documentation

Remove cases with missing values.

Description

Remove cases with missing values.

Usage

listwise_delete(obj, vars)

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

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

Arguments

obj

The data.frame or lm object to process.

vars

The variables to consider.

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.


[Package supernova version 3.0.0 Index]