A data frame containing every combination of factor levels (groups) for the factors provided.
names
A character vector with the names of the groups. Factor-factor level combinations are separated by factor.sep and level names from the corresponding factor names by level.sep.
counts
If count is TRUE a vector indicating the number of occurences of the different groups within the data.frame provided to the function. NULL if count is set to FALSE.