Learn R Programming

DEXiR (version 1.0.2)

make_args: make_args

Description

Make a list of all possible combinations of values in a decision space defined by dim.

Usage

make_args(dim)

Value

A list containing all possible value combinations. List elements are numeric vectors of length equal to length(dim).

Arguments

dim

A numeric vector containing upper bounds of the corresponding decision space dimensions. For example, dim = c(3, 4) defines the space of 3 * 4 == 12 combinations.

Examples

Run this code
make_args(c(3, 4))

Run the code above in your browser using DataLab