Learn R Programming

Hmisc (version 5.1-3)

simplifyDims: List Simplification

Description

Takes a list where each element is a group of rows that have been spanned by a multirow row and combines it into one large matrix.

Usage

simplifyDims(x)

Value

a matrix that contains all of the spanned rows.

Arguments

x

list of spanned rows

Author

Charles Dupont

Details

All rows must have the same number of columns. This is used to format the list for printing.

See Also

Examples

Run this code
a <- list(a = matrix(1:25, ncol=5), b = matrix(1:10, ncol=5), c = 1:5)

simplifyDims(a)

Run the code above in your browser using DataLab