Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vec2mat

Fills a triangular matrix from the inputed vector


Description

Fills a triangular matrix from the inputed vector

Usage

vec2mat(x,diag=FALSE,upper=FALSE)

Arguments

x

a vector

diag

whether the vector contains the diagonal elements

upper

whether the vector contains the upper trinagular matrix elements

Value

a matrix

Examples

{
 vec2mat(1:10)
 vec2mat(1:10,diag=TRUE)
 vec2mat(1:10,upper=TRUE)
}

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.