expand.grid2: Expand.grid which takes in data.frames as well

View source: R/tools.R

expand.grid2R Documentation

Expand.grid which takes in data.frames as well

Description

expands the respective rows and merges data.frames respectively

Usage

expand.grid2(..., FLAGremoveAuxCols = TRUE)

Arguments

...

same as expand.grid, but data.frames or data.tables are allowed

FLAGremoveAuxCols

remove or keep auxiliary columns used for merging?

Value

expand.gridded data.frame

Author(s)

Daniel Lill (daniel.lill@intiquan.com)

Examples

expand.grid2(vec1 = 1:2, df1 = data.frame(a = letters[2:3], b = 3:4), 
  df2 = data.table(d = 1:2, e = 4:5), FLAGremoveAuxCols = TRUE)

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.