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


na.tools documentation built on June 26, 2018, 5:02 p.m.