na_rm: na_rm

Description Usage Arguments Details Value See Also

View source: R/na_rm.R

Description

Removes NA values from objects

Usage

1
2
3
na_rm(object)

na_rm(object)

Arguments

object

to remove NAs from

Details

For vectors this is the same as stats::na_omit() and stats::na_exclude().

For removing columns or rows that are have only missing values use na_drop_col() or na_drop_row()

Value

An object of the same class with all NA values removed. For data.frame and data.table objects entire columns are removed if they contain solely NA values.

See Also

stats::na_omit() stats::na_exclude()
na_all()


decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.