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.
invwhich(which, len = max(which))
integer vector of indices, as would be produced by which
integer scalar: length of return vector, defaults to
max(which)
logical vector of length length