Calculate Euclidean distance
Usage
euclidean(x, ...)
# S4 method for numeric
euclidean(x, y)
Arguments
- x
Object.
- y
Object.
- ...
Additional arguments.
Examples
## numeric ====
x <- seq(from = 1L, to = 5L, by = 1L)
y <- seq(from = 6L, to = 10L, by = 1L)
euclidean(x = x, y = y)
#> [1] 11.18034