Learn R Programming

AtmRay (version 1.31)

meshgridn: Multi-Dimensional Meshgrid

Description

Inputs a list of vectors, and returns a list of vectors such that every possible combination of input vector values occurs once in the output.

Usage

meshgridn(L)

Arguments

L
list of vectors

Value

List of vectors of equal length such that each combination of elements drawn from the input vectors occurs exactly once in the output list.

Examples

Run this code
meshgridn(list(1:5, 10:12, 100:104))

Run the code above in your browser using DataLab