eucdist | R Documentation |
Calculate the Euclidean distance between two points
eucdist(x1, y1, x2, y2)
x1 |
x coordinate of point 1 |
y1 |
y coordinate of point 1 |
x2 |
x coordinate of point 2 |
y2 |
y coordinate of point 2 |
distance between point 1 and 2
eucdist(0, 0, 2, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.