Learn R Programming

s2dverification (version 2.4.0)

IniListDims: Creates A List Of Integer Ranges

Description

This function generates a list of arrays where those arrays contain integers from 1 to various numbers. This list of arrays is used in the other functions as a list of indices of the elements of the matrices.

Usage

IniListDims(dims, lenlist)

Arguments

Value

A list with lenlist elements, each with arrays with integers from 1 to the numbers in dims array and with only 1 for the dimensions above length(dims).

Examples

Run this code
indices <- IniListDims(c(2, 2, 4, 3), 6)
print(indices)

Run the code above in your browser using DataLab