dist2d | R Documentation |
This function lets the user calculate the mathematical linear distance Between a specific point and a line (given geometrical 3 points)
dist2d(x, a = c(0, 0), b = c(1, 1))
x |
Vector. Coordinates of the point from which we want to measure the distance |
a |
Vector. Coordinates of 1st point over the line |
b |
Vector. Coordinates of 2st point over the line |
Numeric value result
Other Calculus:
corr()
,
model_metrics()
,
quants()
dist2d(x = c(5, 2))
dist2d(x = c(5, 2), a = c(0, 0), b = c(0, 1))
dist2d(x = c(5, 2), a = c(0, 0), b = c(1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.