finds | R Documentation |
Finds indices of nonzero elements.
finds(v)
v |
logical or numeric vector or array |
Finds indices of true or nonzero elements of argument v
;
can be used with a logical expression.
Indices of elements matching the expression x
.
finds(-3:3 >= 0)
finds(c(0, 1, 0, 2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.