createCombinations: Create all possible combinations of values

Description Usage Arguments Value Examples

View source: R/blockrand2_main.R

Description

Create all possible combinations of values given in a list of value vectors

Usage

1

Arguments

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.

Value

Data frame with each row representing a possible combination of values.

Examples

1
2
3
4
5
createCombinations(list(
  sex = c("male", "female"),
  smokes = c("yes", "sometimes", "no"),
  cancer = c("yes", "no")
))

hsonne/blockrand2 documentation built on May 17, 2019, 6:16 p.m.