cartesian_product: Compute the Cartesian product of named variables.

Description Usage Arguments Value Examples

View source: R/cartesian_product.R

Description

Compute the Cartesian product of named variables.

Usage

1

Arguments

variable.names

Character vector of names of variables

envir

The environment in which to find names

Value

The Cartesian product of all variables

Examples

1
2
3
4
5
6
7
8
9
library('cumplyr')
x <- 1:2
y <- 10:11
cartesian_product(c('x', 'y'))

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)

cumplyr documentation built on May 30, 2017, 5:24 a.m.

Search within the cumplyr package
Search all R packages, documentation and source code