/working/auteur/R/updatevcv.R
http://github.com/eastman/auteur · R · 11 lines · 7 code · 2 blank · 2 comment · 0 complexity · 148c6ef67e6fd6b3949a03c0e8d057eb MD5 · raw file
- #scales VCV matrix of phylogeny by relative evolutionary rates under Brownian motion
- #author: JM EASTMAN 2010
- updatevcv <-
- function(ape.tre, new.rates) {
- n=ape.tre
- n$edge.length=n$edge.length*new.rates
- vv=vmat(n)
- return(vv)
- }