Learn R Programming

Hmisc (version 5.2-1)

na.delete: Row-wise Deletion na.action

Description

Does row-wise deletion as na.omit, but adds frequency of missing values for each predictor to the "na.action" attribute of the returned model frame. Optionally stores further details if options(na.detail.response=TRUE).

Usage

na.delete(frame)

Value

a model frame with rows deleted and the "na.action" attribute added.

Arguments

frame

a model frame

Author

Frank Harrell
Department of Biostatistics
Vanderbilt University
fh@fharrell.com

See Also

na.omit, na.keep, na.detail.response, model.frame.default, naresid, naprint

Examples

Run this code
# options(na.action="na.delete")
# ols(y ~ x)

Run the code above in your browser using DataLab