powered by
Get the tree length from a PhyloSim object.
This method retruns the sum of the edge lengths stored in the aggregated phylo object.
# S3 method for PhyloSim getTreeLength(this, ...)
A PhyloSim object.
Not used.
A numeric vector of length one.
For more information see PhyloSim.
PhyloSim
# NOT RUN { # create a PhyloSim object sim<-PhyloSim(phylo=rcoal(5)); # get the tree length getTreeLength(sim) # get tree length via virtual field sim$treeLength # }
Run the code above in your browser using DataLab