mat2list: Matrix to list

Description Usage Arguments Value Examples

View source: R/mat2list.R

Description

Convert a named matrix of abundance to a named list.

Usage

1
mat2list(mat)

Arguments

mat

matrix.

Value

mat2list returns a named list whose each entry is a row of the original matrix.

Examples

1
2
3
m <- matrix(1:12, ncol = 3)
rownames(m) <- letters[1:4]
mat2list(m)

abichat/correlationtree documentation built on March 11, 2020, 3:55 p.m.