List2Matrix: Convert a list of matrices into a single large matrix

View source: R/List2Matrix.R

List2MatrixR Documentation

Convert a list of matrices into a single large matrix

Description

Convert a list of matrices into a single large matrix

Usage

List2Matrix(x, sym = FALSE)

Arguments

x

A numeric list with each entity be a numeric matrix with p rows and q columns

sym

A logical scalar representing whether each matrix is symmetric. If true, the duplicated half is removed

Value

A numeric matrix with pq rows and T columns

Examples

x=list(x1=1:3,x2=4:6)
List2Matrix(x)

y=list(y1=matrix(1:4,2),y2=matrix(5:8,2))
List2Matrix(y)


rid documentation built on May 29, 2024, 6:18 a.m.

Related to List2Matrix in rid...