Learn R Programming

s2dverification (version 2.5.0)

Enlarge: Extends The Number Of Dimensions of A Matrix

Description

Extends the number of dimensions of var to numdims (the added dimensions have length 1).

Usage

Enlarge(var, numdims)

Arguments

var
Matrix to be extended.
numdims
Output number of dimensions.

Value

Extended matrix.

Examples

Run this code
data <- array(1, c(2, 2, 3))
print(dim(Enlarge(data, 5)))

Run the code above in your browser using DataLab