hlpr_vector_projection: Perform vector projection

View source: R/helper-functions.R

hlpr_vector_projectionR Documentation

Perform vector projection

Description

Helper function for trajectory-analysis to use within dplyr::mutate(). Performs vector-projection with a spatial position and a local coordinates system to arrange the barcodes that fall into a trajectory square according to the trajectory direction.

Usage

hlpr_vector_projection(lcs, x_coordinate, y_coordinate)

Arguments

lcs

A data.frame specifying the local coordinates system with variables x, y, xend, yend and the observations local length axis and local width axis.

x_coordinate

x-coordinate

y_coordinate

y-coordinate

Value

The projected length.


kueckelj/SPATA documentation built on March 22, 2022, 9:59 p.m.