Description Usage Arguments Value Changes Author(s) References See Also Examples
Gives a logical vector which is TRUE for the indices provided
1 | invwhich(ix, n = max(if (is.numeric(ix)) ix, length(nm)), nm)
|
ix |
an vector of indices |
n |
the length of the output vector; defaults to the maximum index |
nm |
(optional) names for the vector |
a logical vector of length n
and names nm
If nm
is specified, ix
may be a character vector instead.
Rather than using a useNames
logical to copy the names attribute from
one vector to another, you may specify names via the nm
argument.
Nick Sabbe, Neal Fultz
http://stackoverflow.com/a/7661128/986793
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.