nainf.exclude: Drop Rows Containing NA or Inf

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Drops the rows of a data frame that contain an NA, an NaN, or an Inf value

Usage

1
nainf.exclude(object, ...)

Arguments

object

an R object, typically a data frame

...

further arguments special methods could require.

Details

This is a simple modification of na.omit and na.exclude

Value

The value is of the same type as the argument object, with possibly less elements.

Author(s)

Werner A. Stahel, ETH Zurich

See Also

na.omit

Examples

1
2
t.d <- data.frame(V1=c(1,2,NA,4), V2=c(11,12,13,Inf))
nainf.exclude(t.d)

regr0 documentation built on May 2, 2019, 4:52 p.m.