Learn R Programming

dendextend (version 1.3.0)

is.dist: Checks if an object is of class dist

Description

Checks if an object is of class dist (returns TRUE if it is).

Usage

is.dist(x)

Arguments

x
whatever object to check

Value

logical

Examples

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

Run the code above in your browser using DataLab