project_on_vector: Perform vector projection

View source: R/p.R

project_on_vectorR 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

project_on_vector(lcs, x, y)

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

x-coordinate

y

y-coordinate

Value

The projected length.


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.