#' Matches vector entries to list (stackoverflow question 11002391)
#'
#' @param vector vector from which to match
#' @param list list vector entries should be matched to
#'
#' @return
#' @export
#'
#'
match_v2l <- function(vector, list) {
g <- rep(seq_along(list), sapply(list, length))
return(g[match(vector, unlist(list))])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.