powered by
convert matrix to list of vectors: each column of 'mat' as vector of list
matr2list(mat, concSym = ".", silent = FALSE, debug = TRUE, callFrom = NULL)
matrix or array (1st dim is intraplate-position, 2nd .. plate-group/type, 3rd .. channels)
(matrix) main input
(character) symbol for concatenating: concatenation of named vectors in list names as colname(s)+'concSym'+rowname
(logical) suppress messages
(logical) additional messages for debugging
(character) allow easier tracking of messages produced
convToNum
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)
Run the code above in your browser using DataLab