oak (version 0.2.1)

is.tree: Test if an object is a tree

Description

The function is.tree returns TRUE if x is a tree, FALSE otherwise.

Usage

is.tree(x)

is.rtree(x)

Arguments

x

An object to be tested.

Value

A logical.

Examples

Run this code
# NOT RUN {
## FALSE
is.tree(empty_tree())

# }

Run the code above in your browser using DataLab