notna {regr0} | R Documentation |
Return the vector 'x', without elements that are NA or NaN or, if 'inf' is TRUE, equal to Inf or -Inf
notna(x, inf = TRUE)
x |
vector from which the non-real values should be dropped |
inf |
Should 'Inf' and '-Inf' be considered "non-real"? |
Vector containing the 'real' values of 'x' only
The differences to 'na.omit(x)' are: 'Inf' and '-Inf' are also dropped, unless 'inf==FALSE'.\ no attribute 'na.action' is appended.
Werner A. Stahel
dd <- c(1, NA, 0/0, 4, -1/0, 6) notna(dd) na.omit(dd)