Compute the Cartesian product of named variables.
cartesian_product(variable.names, envir = parent.frame())
Character vector of names of variables
The environment in which to find names
The Cartesian product of all variables
x <- 1:2
y <- 10:11
tmp.env <- new.env()
assign('x', 1:3, envir = tmp.env)
assign('y', 2:4, envir = tmp.env)
cartesian_product(c('x', 'y'), envir = tmp.env)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.