na.rm: na.rm

Description Usage Arguments Details Value See Also

Description

Removes NA values from objects

Usage

1
na.rm(object, ...)

Arguments

object

to remove NAs from

...

further arguments special methods could require.

Details

For vectors this is the same as stats::na.omit() or stats::na.exclude(). It will also work on recursive objects.

This is predominantly maintained for syntactic convenience since a number of functions have na.omir

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


decisionpatterns/na.tools documentation built on May 25, 2019, 4:23 p.m.