invwhich: inverse which

Description Usage Arguments Value

View source: R/util.r

Description

for a given vector of ordinals which would reference items in a vector, list etc, invwhich returns a logical vector with TRUE for the cited positions. If length is not provided, the maximum index is used.

Usage

1

Arguments

which

integer vector of indices, as would be produced by which

len

integer scalar: length of return vector, defaults to max(which)

Value

logical vector of length length


jwutil documentation built on May 7, 2019, 1:03 a.m.