Learn R Programming

rid (version 0.0.1)

List2Matrix: 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)

Value

A numeric matrix with pq rows and T columns

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

Examples

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

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

Run the code above in your browser using DataLab