Learn R Programming

phylosim (version 3.0.5)

getTips.PhyloSim: Get the node identifiers of the tip nodes from a PhyloSim object

Description

Get the node identifiers of the tip nodes from a PhyloSim object.

Usage

# S3 method for PhyloSim
getTips(this, ...)

Arguments

this

A PhyloSim object

...

Not used.

Value

A numeric vector.

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# create a PhyloSim object
	sim<-PhyloSim(phylo=rcoal(5));
	# get the tip IDs
	getTips(sim)
	# get the tip IDs via virtual field
	sim$tips
 
# }

Run the code above in your browser using DataLab