R/is.functions.R
is_some_class.Rd
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)
an object.
# 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