add.all.combinations {reshape}R Documentation

Add all combinations

Description

Add all combinations of the given rows and columsn to the data frames.

Usage

add.all.combinations(data, rows, cols)

Arguments

data data.frame
rows row variables (character vector)
cols column variables (character vector)

Details

This function is used to ensure that we have a matrix of the appropriate dimensionaliy with no missing cells.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples






[Package reshape version 0.6.1 Index]