View source: R/list_in_vector.R
list_in_vector | R Documentation |
list_in_vector
returns the sum of all the values present in its arguments.
list_in_vector(list, vector, all = FALSE)
list |
list of either numeric or character vectors that you would like to find. |
vector |
a numeric or character vector to be searched |
all |
default is FALSE. If FALSE, returns a logical vector. If TRUE, returns a boolean indicating whether or not all elements contained matches. |
Test whether each element of list[[index]] can be found in the corresponding vector[index] for the whole list. If yes, returns TRUE else returns FALSE
boolean. True or False
list <- list(c('hi','bi','sc'),c('h','o','g'),c('fu','lc','rum')) vector <-c('hibiscus','goh','fulrum') list_in_vector(list,vector) list_in_vector(list,vector,all=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.