Learn R Programming

phylosim (version 3.0.5)

getNodes.PhyloSim: Get the node identifiers from a PhyloSim object

Description

Get the node identifiers from a PhyloSim object.

Usage

# S3 method for PhyloSim
getNodes(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 node IDs
	getNodes(sim)
	# get the node IDs via virtual field
	sim$nodes
 
# }

Run the code above in your browser using DataLab