powered by
Chebyshev distance
dist_chebyshev(x, diag = FALSE, upper = FALSE)
Chebyshev distance returns an object of class "dist".
dist
a numeric matrix or data frame.
logical value indicating whether the diagonal of the distance matrix should be printed by print.dist.
print.dist
logical value indicating whether the upper triangle of the distance matrix should be printed by print.dist .
x <- matrix(rnorm(100), nrow = 5) dist_chebyshev(x)
Run the code above in your browser using DataLab