View source: R/format_template.R
get_combinations | R Documentation |
This function generates all possible combinations of keys from a given named list or vector.
get_combinations(criteria)
criteria |
A named list or vector, where the names represent the keys. |
A list of combinations, where each combination is a character vector of key names.
## Not run:
criteria <- list(key1 = "value1", key2 = "value2", key3 = "value3")
get_combinations(criteria)
# Returns a list of combinations: c("key1"), c("key2"), c("key3"), c("key1", "key2"), ...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.