expand-grid-df-fl: Expand grid

expand.grid.dfR 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")))

reshape documentation built on April 12, 2022, 5:07 p.m.