Expand.grid which takes in data.frames as well

Expands the respective rows and merges data.frames respectively

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

See also

Other Other functions: verifyArg()

Author

Daniel Lill (daniel.lill@intiquan.com)

Examples

if (FALSE) { # \dontrun{
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)
} # }