#' Common elements
#'
#' Finds if vectors have common elements.
#'
#' @param a first vector
#' @param b second vector
#' @export
common.elements <- function(a,b) {
x <- a %in% b
out <- any(x==TRUE)
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.