is.phylo: Check if an object is an instance of the phylo class

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if an object is an instance of the phylo class. Phylo objects are created by the APE package. This method just return the value of inherits(this,"phylo").

Usage

1
2
## Default S3 method:
is.phylo(this, ...)

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE.

Author(s)

Botond Sipos, Gregory Jordan

See Also

The ape package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# load APE
	library(ape);
	# create some objects
	o1<-Object();
	o2<-rcoal(3);
	# check if they are phylo objects
	is.phylo(o1);
	is.phylo(o2);	

 

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