The upper triangle of a matrix
utri(mat)
mat
A matrix
Returns a vector
David L Gibbs
m <- matrix(rnorm(9), nrow=3, ncol=3) utri(m)