add.all.combinations {reshape} | R Documentation |
Add all combinations of the given rows and columsn to the data frames.
add.all.combinations(data, rows, cols)
data |
data.frame |
rows |
row variables (character vector) |
cols |
column variables (character vector) |
This function is used to ensure that we have a matrix of the appropriate dimensionaliy with no missing cells.
Hadley Wickham <h.wickham@gmail.com>