lower.triangle: Get lower triangle of a square matrix as a numeric vector...

Description Usage Arguments Value Author(s) References Examples

View source: R/utils.R

Description

Get lower triangle of a square matrix as a numeric vector such that row-by-row, picking elements in the order 2,1;3,1;3,2;4,1,...

Usage

1

Arguments

mat

data matrix

Value

lower triangle as vector

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
mat <- rbind(c(1,2,3), c(4,5,6), c(7,8,9))
  vec <- lower.triangle(mat)

microbiome/microbiomeold documentation built on May 22, 2019, 9:57 p.m.