mat2vec: Creates a vector from a matrix

mat2vecR Documentation

Creates a vector from a matrix

Description

creates a vector from a matrix

Usage

mat2vec(mat,upper=FALSE)

Arguments

mat

a symmetric matrix

upper

whether the upper triangular matrix is to be copied to the vector

Value

a vector

Examples

{

 mat2vec(matrix(1:16,nrow=4))
 mat2vec(matrix(1:16,nrow=4),upper=TRUE)
}

jgx65/hierfstat documentation built on April 20, 2023, 8:34 a.m.