dist_chebyshev | R Documentation |
Chebyshev distance
dist_chebyshev(x, diag = FALSE, upper = FALSE)
x |
a numeric matrix or data frame. |
diag |
logical value indicating whether the diagonal of the distance
matrix should be printed by |
upper |
logical value indicating whether the upper triangle of the
distance matrix should be printed by |
Chebyshev distance returns an object of class "dist
".
x <- matrix(rnorm(100), nrow = 5)
dist_chebyshev(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.