expand.grid.df: Expand grid

Description Usage Arguments Details Author(s) Examples

Description

Expand grid of data frames

Usage

1

Arguments

...

list of data frames (first varies fastest)

unique

only use unique rows?

Details

Creates new data frame containing all combination of rows from data.frames in ...

This is an exact copy of the expand.grid.df function in the reshape package. I chose to include it as a function within this package to avoid using a dependency to a package that is no longer maintained.

Author(s)

Hadley Wickham

Examples

1
2
3
4
5
6
7
## Not run: 
expand.grid.df(data.frame(a=1,b=1:2))
expand.grid.df(data.frame(a=1,b=1:2), data.frame())
expand.grid.df(data.frame(a=1,b=1:2), data.frame(c=1:2, d=1:2))
expand.grid.df(data.frame(a=1,b=1:2), data.frame(c=1:2, d=1:2), data.frame(e=c("a","b")))

## End(Not run)

nutterb/StudyPlanning documentation built on May 24, 2019, 10:51 a.m.