$ 0 0 This post shows how to convert a lower triangular matrix into a vector or vice versa using R code.