compute_distances_from_origin: Compute the distances from origin

Description Usage Arguments Value

View source: R/compute-family.R

Description

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.

Usage

1
compute_distances_from_origin(x_coords, y_coords)

Arguments

x_coords

Numeric vector. Refers to x-coordinates of object.

y_coords

Numeric vector. Refers to y-coordinates of object.

Value

A numeric vector that corresponds to the respective distances from the first position.


kueckelj/celltracer documentation built on June 2, 2021, 6:37 a.m.