
Get the identifier of the root node from a PhyloSim object.
# S3 method for PhyloSim
getRootNode(this, ...)
A PhyloSim object.
Not used.
A numeric vector of length one.
For more information see PhyloSim
.
# NOT RUN {
# create a PhyloSim object
sim<-PhyloSim(phylo=rcoal(5));
# get the root node ID
getRootNode(sim)
# get the root node ID via virtual field
sim$rootNode
# }
Run the code above in your browser using DataLab