euclid_distance | R Documentation |
Calculates euclidian distance between two points.
euclid_distance(point1, point2)
point1 |
numeric position (usually length 2 or 3) |
point2 |
numeric position (usually length 2 or 3) |
numeric or NA if not valid
print(euclid_distance(c(0,0), c(1,1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.