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


jackwasey/jwutil documentation built on May 18, 2019, 7:58 a.m.