Learn R Programming

SoilR (version 1.2.107)

listProduct: tensor product of lists

Description

Creates a list of all combinations of the elements of the inputlists (like a "tensor product list " The list elements can be of any class. The function is used in examples and tests to produce all possible combinations of arguments to a function. look at the tests for example usage

Usage

listProduct(...)

Value

a list of lists each containing one combinations of the elements of the input lists

Arguments

...

lists

Examples

Run this code
listProduct(list('a','b'),list(1,2))

Run the code above in your browser using DataLab