This function is basically an inverse of which.
Arguments
- which
a numeric vector of indices to set to TRUE.
- n
total length of the output vector.
Value
A logical vector of length n whose elements listed in
which are set to TRUE, and whose other elements are set to
FALSE.