Learn R Programming

phytools (version 0.2-40)

lambda.transform: Lambda transformation of matrix

Description

Function multiplies the off-diagonals of a square matrix by lambda. Used internally in phyl.pca and other functions.

Usage

lambda.transform(lambda, C)

Arguments

lambda
scalar, usually on the interval 0,1.
C
matrix probably returned by vcv.phylo.

Value

  • a matrix.

Details

Do not use unless you know what you're doing.

Examples

Run this code
tree<-pbtree(n=100)
	V.lambda<-lambda.transform(0.7,vcv.phylo(tree))

Run the code above in your browser using DataLab