Skip to contents

Generates all possible combinations of labels.

Usage

getGridCombination(l_labels)

Arguments

l_labels

List of label vectors

Value

A data frame with all possible combinations of labels

Examples

l_labels <- list(
  c("A", "B", "C"),
  c("X", "Y")
)
getGridCombination(l_labels)
#>   label_1 label_2
#> 1       A       X
#> 2       B       X
#> 3       C       X
#> 4       A       Y
#> 5       B       Y
#> 6       C       Y