append.list.mx: Append two lists of matrices by adding each element of...

View source: R/MatrixUtil.r

append.list.mxR Documentation

Append two lists of matrices by adding each element of listmx.src into the corresponding element of listmx.dest in the specified dimension.

Description

Append two lists of matrices by adding each element of listmx.src into the corresponding element of listmx.dest in the specified dimension.

Usage

append.list.mx(listmx.dest, listmx.src, into.dim = ZDIM)

Arguments

listmx.dest

list of vector/matrix/arrays

listmx.src

list of vector/matrix/arrays

into.dim

the dimension in which to add each element of listmx.src.

If into.dim = ZDIM (i.e: 3) then listmx.src elements will be added as an additional z matrix into each matrix/array element of listmx.dest. Existing elements of listmx.dest will be in the first z dim(s).

If into.dom = COL (i.e: 2) then listmx.src elements will be added as the 2nd col into each vector/matrix element of listmx.dest. Existing elements of listmx.dest will be in the first column(s).

If into.dom = ROW (i.e: 1) then listmx.src elements will be added as the 2nd row into each vector/matrix element of listmx.dest. Existing elements of listmx.dest will be in the first row(s).

Value

list of vector/matrix/arrays after appended.


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.