setPhylo.PhyloSim: Set the phylo object for a PhyloSim object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the phylo object for a PhyloSim object.

The internal structure of the provided phylo object is reordered in a cladeweise fashion.

Usage

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

Arguments

this

A PhyloSim object.

value

A phylo object created by the ape package.

...

Not used.

Value

A phylo object or FALSE.

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.