Description Usage Arguments Value
View source: R/compute-family.R
The first values of both input-vectors are taken as the origin position. For each subsequent position the respective distance to the position of origin is computed.
To be used in dplyr::mutate()
to recalculate the distances
of origin if the experiment includes time displaced treatment.
1 | compute_distances_from_origin(x_coords, y_coords)
|
x_coords |
Numeric vector. Refers to x-coordinates of object. |
y_coords |
Numeric vector. Refers to y-coordinates of object. |
A numeric vector that corresponds to the respective distances from the first position.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.