inf.omit {IDPmisc} | R Documentation |
Omits observations with NA, NaN, Inf and -Inf Values when object is a vector, a data.frame or a matrix.
inf.omit(x)
x |
Vector , data.frame or matrix |
Returns objects in the same way as na.omit
does.
Rene Locher
inf.omit(c(1,3,NaN,NA,1/0,-1/0,9)) inf.omit(data.frame(RowNr=letters[1:7],Value=c(1,3,NaN,NA,1/0,-1/0,9))) M <- matrix(c(1,3,5,10,NaN,NA,1/0,-1/0,9:12),ncol=2) M inf.omit(M)