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)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.