Learn R Programming

phylosim (version 3.0.5)

is.PSRoot: Check if an object inherits from PSRoot

Description

Check if an object inherits from PSRoot.

Usage

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

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE.

See Also

For more information see PSRoot.

Examples

Run this code
# NOT RUN {
	# create some objects
	o<-PSRoot()
	a<-Alphabet()
	x<-Object()
	# check if they inherit form PSRoot
	is.PSRoot(o)
	is.PSRoot(a)
	is.PSRoot(x)
 
# }

Run the code above in your browser using DataLab