Learn R Programming

dendextend (version 1.18.1)

is_some_class: Is the object of some class

Description

Returns TRUE if some class (based on the name of the function).

Usage

is.hclust(x)

is.dendrogram(x)

is.phylo(x)

is.dendlist(x)

is.dist(x)

Value

Returns TRUE if some class (based on the name of the function).

Arguments

x

an object.

Examples

Run this code
# TRUE:
is.dendlist(dendlist())
# FALSE
is.dendlist(1)
# TRUE:
is.dist(dist(mtcars))
# FALSE
is.dist(mtcars)

Run the code above in your browser using DataLab