expand.grid.df {reshape} | R Documentation |
Expand grid
Description
Expand grid of data frames
Usage
expand.grid.df(..., unique=TRUE)
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 ...
Author(s)
Hadley Wickham <h.wickham@gmail.com>
Examples
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")))
[Package reshape version 0.8.9 Index]