Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matr2list

Transform columns of matrix to list of vectors


Description

convert matrix to list of vectors: each column of 'mat' as vector of list

Usage

matr2list(mat, concSym = ".", silent = FALSE, callFrom = NULL)

Arguments

mat

(matrix) main input

concSym

(character) symbol for concatenating: concatenation of named vectors in list names as colname(s)+'concSym'+rowname

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of messages produced

Value

matrix or array (1st dim is intraplate-position, 2nd .. plate-group/type, 3rd .. channels)

See Also

Examples

mat1 <- matrix(1:12,ncol=3,dimnames=list(letters[1:4],LETTERS[1:3]))
mat2 <- matrix(LETTERS[11:22],ncol=3,dimnames=list(letters[1:4],LETTERS[1:3]))
matr2list(mat1);  matr2list(mat2)

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.