whichIs | R Documentation |
Search values or patterns in a vector.
whichIs(x, y, isPattern = FALSE, ...)
x |
a vector of values or patterns to be searched for. |
y |
a vector where x values are searched for. |
isPattern |
should x be considered as a vector of patterns? |
... |
further arguments to be passed to |
A list of positions. Each element corresponds to the matches for a specific x value.
vec <- LETTERS[1:10] spl <- sample(vec) id <- unlist(whichIs(vec, spl)) identical(vec, spl[id])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.