matr2list: Transform columns of matrix to list of vectors

View source: R/matr2list.R

matr2listR Documentation

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, debug = TRUE, 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

debug

(logical) additional messages for debugging

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

convToNum

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 documentation built on Sept. 11, 2024, 6:10 p.m.