rg.remove.na | R Documentation |
Function to remove NAs from a vector and inform the user of how many.
rg.remove.na(xx)
xx |
vector |
The function counts the NAs in a vector and returns the number of NAs and the "new" vector.
x |
vector without the NAs |
nna |
number of NAs removed |
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
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.
x<-rep(NA,10)
x[c(1,3,5,7,9)]<-10
rg.remove.na(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.