Learn R Programming

distrr (version 0.0.6)

combn_char: Generate all combinations of the elements of a character vector

Description

Generate all combinations of the elements of a character vector

Usage

combn_char(x)

Arguments

x

a character vector

Value

a nested list. A list whose elements are lists containing the character vectors with the combinations of their elements.

Examples

Run this code
# NOT RUN {
combn_char(c("gender", "sector"))
combn_char(c("gender", "sector", "education"))
# }

Run the code above in your browser using DataLab