Interact character vectors to get a character vector of concatenated combinations.

interact(...)

Arguments

...

character vectors

Value

character vector whose elements are the concatenated elements of the input character vectors

Examples

interact(sex=c("male", "female"), age=c("young", "adult", "old"))
#> [1] "male_young"   "female_young" "male_adult"   "female_adult" "male_old"    
#> [6] "female_old"