flatten_mxs_to_single_mx: Takes a list of matrices, flattens them into a single row,...

View source: R/MatrixUtil.r

flatten_mxs_to_single_mxR Documentation

Takes a list of matrices, flattens them into a single row, aligns them by column name and then returns a single matrix.

Description

Takes a list of matrices, flattens them into a single row, aligns them by column name and then returns a single matrix.

Usage

flatten_mxs_to_single_mx(listmx)

Arguments

listmx

list of matrices to flatten. Can have different dimensions but must have similar names for alignment (@seealso listmx.flat.aligned)

Value

a single matrix with colnames = the flattened row/col names of listmx[[1]]], meta = meta of listmx[[1]] rownames = names of listmx


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