distance | R Documentation |
Computes the distance between two numeric vectors with a distance metric included in the data frame distantia::distances
.
distance(x = NULL, y = NULL, distance = "euclidean")
x |
(required, numeric vector). |
y |
(required, numeric vector) of same length as |
distance |
(optional, character string) name or abbreviation of the distance method. Valid values are in the columns "names" and "abbreviation" of the dataset |
numeric value
Other distances:
distance_matrix()
,
distances
distance(
x = runif(100),
y = runif(100),
distance = "euclidean"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.