R/lower_triangle.R

Defines functions lower_triangle

## Helper function to get the lower triangle of a matrix
##
## @param x a matrix
##
## @return a vector of values from the lower triangle of the matrix
##
##
lower_triangle<-function(x){
  x[lower.tri(x)]
}
chorscroft/zalpha documentation built on Dec. 12, 2021, 8:32 p.m.