w {np}R Documentation

where

Description

w computes indices where x == TRUE.

Usage

w(x)

Arguments

x an array of logical values

Details

w accepts an array of type logical and returns an array of indices where x == TRUE. If x contains no TRUE entries, NULL is returned.

Value

an array of indices where x == TRUE.

Author(s)

Tristen Hayfield hayfietj@mcmaster.ca, Jeffrey S. Racine racinej@mcmaster.ca

See Also

match

Examples

x <- rnorm(100)
w(x > 1.0)

[Package np version 0.12-1 Index]