Learn R Programming

hierfstat (version 0.04-22)

mat2vec: Rewrite a matrix as a vecor

Description

transform lower triangular matrix in vector 1.2,1.3,2.3,1.4,2.4,3.4

Usage

mat2vec(mat)

Arguments

mat

a (square) matrix

Value

x

a vector

Examples

Run this code
# NOT RUN {
mat2vec(matrix(1:16,nrow=4))
# }

Run the code above in your browser using DataLab