find: find function (Matlab Style)

Description Usage Arguments Details Value Examples

Description

Finds indices of nonzero elements.

Usage

1
finds(v)

Arguments

v

logical or numeric vector or array

Details

Finds indices of true or nonzero elements of argument v; can be used with a logical expression.

Value

Indices of elements matching the expression x.

Examples

1
2
finds(-3:3 >= 0)
finds(c(0, 1, 0, 2, 3))


Search within the pracma package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.