Enlarge: Extends The Number Of Dimensions of A Matrix

View source: R/Enlarge.R

EnlargeR Documentation

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

Output number of dimensions.

Author(s)

History:
0.1 - 2011-03 (V. Guemas) - Original code
1.0 - 2013-09 (N. Manubens) - Formatting to R CRAN
1.1 - 2015-03 (N. Manubens) - Improved

Examples

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

s2dverification documentation built on April 20, 2022, 9:06 a.m.