rg.remove.na: Remove NA

Description Usage Arguments Details Value Author(s) References Examples

Description

Function to remove NAs from a vector and inform the user of how many.

Usage

1

Arguments

xx

vector

Details

The function counts the NAs in a vector and returns the number of NAs and the "new" vector.

Value

x

vector without the NAs

nna

number of NAs removed

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

1
2
3
x<-rep(NA,10)
x[c(1,3,5,7,9)]<-10
rg.remove.na(x)

StatDA documentation built on March 13, 2020, 2:42 a.m.

Related to rg.remove.na in StatDA...