Description Usage Arguments Value
A vectorised function for calculating the distance
between two points in Cartesian space. Computes the
distance between (x[1], y[1])
and (x[2],
y[2])
.
1 | distance(x, y)
|
x |
A numeric vector of length 2, containing the x-coordinates of the two points |
y |
A numeric vector of length 2, containing the y-coordinates of the two points |
A numeric vector of length 1. The distance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.