getPositions | R Documentation |
Determines positions in a vectors
that fulfill criteria defined by a list
of criteria, e.g., is.na
.
getPositions(y, imputeCriteriaFuns = list(is.na, is.infinite, is.nan))
y |
The vector of numerics from which NA/Inf values should be removed |
imputeCriteriaFuns |
|
p vector of positions that fulfill one of the criteria
imputeCriteriaFuns <- list(is.na, is.infinite, is.nan) y <- c(1,2,Inf,4,NA,6) p <- getPositions(y, imputeCriteriaFuns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.