fun.which.zero | R Documentation |
Returns an integer vector showing the position of zero values in the data.
fun.which.zero(data)
data |
A vector of data. |
An integer vector showing the position of zero values in the data.
Any missing values will be returned as missing.
Steve Su
fun.zero.omit
# Finding where the zeros are in this vector: c(0,1,2,3,4,0,2)
fun.which.zero(c(0,1,2,3,4,0,2))
# Finding where the zeros are in this vector: c(0,1,2,3,NA,0,2)
fun.which.zero(c(0,1,2,3,NA,0,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.