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

is.hclust(x)

is.dendrogram(x)

is.phylo(x)

is.dendlist(x)

is.dist(x)

Arguments

x

an object.

Value

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

Examples

# TRUE:
is.dendlist(dendlist())
#> [1] TRUE
# FALSE
is.dendlist(1)
#> [1] FALSE
# TRUE:
is.dist(dist(mtcars))
#> [1] TRUE
# FALSE
is.dist(mtcars)
#> [1] FALSE