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

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the phylo object aggregated in a PhyloSim object.

Usage

1
2
## S3 method for class 'PhyloSim'
getPhylo(this, ...)

Arguments

this

A PhyloSim object.

...

Not used.

Value

A phylo object or NA.

Author(s)

Botond Sipos, Gregory Jordan

See Also

The PhyloSim class, the ape package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	#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;
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.