Learn R Programming

TreeTools (version 1.12.0)

is.TreeNumber: Is an object a TreeNumber object?

Description

Is an object a TreeNumber object?

Usage

is.TreeNumber(x)

Value

is.TreeNumber() returns a logical vector of length one specifying whether x inherits the class "TreeNumber".

Arguments

x

R object.

See Also

Other 'TreeNumber' utilities: TreeNumber, print.TreeNumber()

Examples

Run this code
is.TreeNumber(FALSE) # FALSE 
is.TreeNumber(as.TreeNumber(BalancedTree(5))) # TRUE

Run the code above in your browser using DataLab