Learn R Programming

phylosim (version 3.0.5)

getNedges.PhyloSim: Get the number of edges from phylo object aggregated by a PhyloSim object

Description

Get the number of edges from phylo object aggregated by a PhyloSim object.

Usage

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

Arguments

this

A PhyloSim object.

...

Not used.

Value

A numeric vector of length one.

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# create a PhyloSim object
	sim<-PhyloSim(phylo=rcoal(5));
	# get the number of the edges
	getNedges(sim)
	# get the number of the edges via virtual field
	sim$nedges
 
# }

Run the code above in your browser using DataLab