vcv2: Create phylogenetic var-cov matrix

View source: R/utils.R

vcv2R Documentation

Create phylogenetic var-cov matrix

Description

This function will convert a phylogeny to a Var-cov matrix.

Usage

vcv2(phy, corr = FALSE)

Arguments

phy

A phylogeny with "phylo" as class.

corr

Whether to return a correlation matrix instead of Var-cov matrix. Default is FALSE.

Value

A phylogenetic var-cov matrix.


daijiang/phyr documentation built on Feb. 25, 2024, 3:01 a.m.