f_distance | R Documentation |
Calculates distances.
f_distance(x1, y1 = NULL, x2 = NULL, y2 = NULL)
x1 , y1 |
Coordinates of first point (default: y1 = NULL). |
x2 , y2 |
Coordinates of second point (default: x2, y2 = NULL). |
In case a single vector of 4 elements is provided, then x1, x2, x2, and y2 are reassigned using x1.
Vector with distances.
Pieter Overdevest
v.distance <- f_distance(
x1 = c(1 ,1),
y1 = c(1, 2),
x2 = c(3, 3),
y2 = c(4, 5)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.