eucl_dist | R Documentation |
This function takes the x and y coordinates of two points and finds the euclidean distance between them. Note that this only works in two-dimensional data: euclidean distances between points in a three-dimensional space is not currently supported.
eucl_dist(x1, x2, y1, y2)
x1, x2, y1, y2 |
A number |
The distance between the two points (a number).
eucl_dist(1,2,1,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.