find.RdFinds indices of nonzero elements.
finds(v)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)
#> [1] 4 5 6 7
finds(c(0, 1, 0, 2, 3))
#> [1] 2 4 5