powered by
Finds indices of elements.
find(x)
Returns indices of corresponding elements matching the expression x.
x
expression to evaluate
P. Roebuck proebuck1701@gmail.com
If expression is not logical, finds indices of nonzero elements of argument x.
find(-3:3 >= 0) find(c(0, 1, 0, 2, 3))
Run the code above in your browser using DataLab