indicesInList | R Documentation |
Find the occurrences of items in a list of vectors
indicesInList(x, l)
x |
vector of items to be found in the list |
l |
list of vectors in which |
a list containing an element for each item in x
that contains the indices of its occurrence in l
l <- list(1:3, 4:5, 5:9)
x <- c(2,3,5,666,8,5)
indicesInList(x, l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.