listwise_delete: Remove cases with missing values.

View source: R/listwise_delete.R

listwise_deleteR 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.


supernova documentation built on May 29, 2024, 4:47 a.m.