mat2list: Turn matrix into list

Description Usage Arguments Details Value Author(s)

View source: R/RcppExports.R

Description

Turn matrix into list

Usage

1
mat2list(inmat)

Arguments

inmat

numeric or integer matrix, 0/1 matrix. Must have column names!

Details

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.

Value

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

Author(s)

Christof Neumann


gobbios/testingtravis documentation built on July 26, 2020, 7:22 a.m.