Description Usage Arguments Value Examples
View source: R/blockrand2_main.R
Create all possible combinations of values given in a list of value vectors
1 |
x |
List of vectors containing the values to be combined. The names of the list elements will appear as column names in the output data frame. |
Data frame with each row representing a possible combination of values.
1 2 3 4 5 | createCombinations(list(
sex = c("male", "female"),
smokes = c("yes", "sometimes", "no"),
cancer = c("yes", "no")
))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.