find | R Documentation |
Emulates behavior of find
find(x, sort = TRUE)
x |
object or logic operation on an object |
sort |
sort output? |
A vector of indices of x that satisfy the logical test (nonzero, by default).
X <- matrix(c(1, 0, 2, 0, 1, 1, 0, 0, 4), 3, byrow = TRUE) Y <- seq(1, 19, 2) find(X) find(Y == 13)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.