View source: R/grain_compile.R
get_superset_list | R Documentation |
For each element (vector) x in x_set, find the first element (vector) y in y_set such that x is contained in y
get_superset_list(x_set, y_set, warn = FALSE)
x_set |
Vector or list of vectors. |
y_set |
Vector or list of vectors. |
warn |
Should a warning be made if an element is found. |
x_set <- list(c("a", "b"), "e", c("b", "a"))
y_set <- list(c("f","u", "e"), c("a", "b", "c", "a"), c("b", "c", "a"))
get_superset_list(x_set, y_set)
get_superset_list(letters[1:4], y_set)
get_superset_list(letters[1:4], letters[1:10])
get_superset_list(x_set, letters[1:10])
x_set <- list(c("a", "b"), "e", c("b", "a"), "o")
y_set <- list(c("f","u", "e"), c("a", "b", "c", "a"), c("b", "c", "a"))
get_superset_list(x_set, y_set, warn=TRUE)
get_superset_list(x_set, y_set, warn=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.