R: MATLAB find function

find {matlab} | R Documentation

## MATLAB find function

### Description

Finds indices of elements.

### Usage

    find(x)

### Arguments

`x` | expression to evaluate

### Details

If expression is not logical, finds indices of nonzero elements of argument `x`.

### Value

Returns indices of corresponding elements matching the expression `x`.

### Author(s)

P. Roebuck proebuck@mdanderson.org

### Examples

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

[Package matlab version 1.0.2 Index]