Learn R Programming

phylosim (version 3.0.5)

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

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

# S3 method for default
is.phylo(this, ...)

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE.

See Also

The ape package.

Examples

Run this code
# NOT RUN {
	# load APE
	library(ape);
	# create some objects
	o1<-Object();
	o2<-rcoal(3);
	# check if they are phylo objects
	is.phylo(o1);
	is.phylo(o2);	

 
# }

Run the code above in your browser using DataLab