euclidean | R Documentation |
Calculate Euclidean distance
euclidean(x, ...)
## S4 method for signature 'numeric'
euclidean(x, y)
x |
Object. |
y |
Object. |
... |
Additional arguments. |
numeric
.
Updated 2023-09-11.
https://www.statology.org/euclidean-distance-in-r/
## numeric ====
x <- seq(from = 1L, to = 5L, by = 1L)
y <- seq(from = 6L, to = 10L, by = 1L)
euclidean(x = x, y = y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.