is_leaf: Is the input a (dendrogram) leaf?

Description Usage Arguments Value See Also

View source: R/is-type-stats.R

Description

Checks to see if the input is a (dendrogram) leaf.

Usage

1
2
3
assert_is_leaf(x, severity = getOption("assertive.severity", "stop"))

is_leaf(x, .xname = get_name_in_parent(x))

Arguments

x

Input to check.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

.xname

Not intended to be used directly.

Value

is_leaf reimplements is.leaf, providing more information on failure.

See Also

dendrogram.


assertive.types documentation built on May 1, 2019, 10:31 p.m.