Learn R Programming

beadplexr (version 0.5.0)

dist_chebyshev: Chebyshev distance

Description

Chebyshev distance

Usage

dist_chebyshev(x, diag = FALSE, upper = FALSE)

Value

Chebyshev distance returns an object of class "dist".

Arguments

x

a numeric matrix or data frame.

diag

logical value indicating whether the diagonal of the distance matrix should be printed by print.dist.

upper

logical value indicating whether the upper triangle of the distance matrix should be printed by print.dist .

Examples

Run this code

x <- matrix(rnorm(100), nrow = 5)
dist_chebyshev(x)

Run the code above in your browser using DataLab