Learn R Programming

phylosim (version 3.0.5)

is.GeneralInDel: Check if an object inherits from the GeneralInDel class

Description

Check if an object inherits from the GeneralInDel class.

Usage

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

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE.

Examples

Run this code
# NOT RUN {
	# create some objects
	o<-GeneralInDel(rate=1, propose.by=function(process){sample(c(1:10),1)});
	x<-GTR()
	# check if they inherit from GeneralInDel
	is.GeneralInDel(o)
	is.GeneralInDel(x)
 
# }

Run the code above in your browser using DataLab