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)]
}

Try the zalpha package in your browser

Any scripts or data that you put into this service are public.

zalpha documentation built on Nov. 27, 2021, 9:06 a.m.