Description Usage Arguments Details Value Author(s)
Turn matrix into list
1 | mat2list(inmat)
|
inmat |
numeric or integer matrix, 0/1 matrix. Must have column names! |
The function will fail if the input matrix does not have column
names or if it is a not a matrix
, but for example a
data.frame
.
a list where each item represents a row in inmat
and is a
character vector with the column names for which a row value is 1
Christof Neumann
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.