Learn R Programming

phylosim (version 3.0.5)

getPhylo.PhyloSim: Get the phylo object aggregated in a PhyloSim object

Description

Get the phylo object aggregated in a PhyloSim object.

Usage

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

Arguments

this

A PhyloSim object.

...

Not used.

Value

A phylo object or NA.

See Also

The PhyloSim class, the ape package.

Examples

Run this code
# NOT RUN {
	#create a PhyloSim object
	sim<-PhyloSim();
	# creat a phylo object
	tree<-rcoal(3);
	# get/set phylo object
	setPhylo(sim,tree);
	getPhylo(sim,tree);
	# get/set phylo object via virtual field
	sim$tree<-rcoal(5);
	sim$tree;
 
# }

Run the code above in your browser using DataLab