expand.grid.df | R Documentation |
Expand grid of data frames
expand.grid.df(..., unique=TRUE)
... |
list of data frames (first varies fastest) |
unique |
only use unique rows? |
Creates new data frame containing all combination of rows from
data.frames in ...
Hadley Wickham <h.wickham@gmail.com>
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")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.