dist_line: dist_line

View source: R/dist_line.R

dist_lineR Documentation

dist_line

Description

Calculate distance between a line and set of points; several lines = path

Usage

dist_line(points, lines)

Arguments

points

A data frame that contains the coordinates of the points

lines

A data frame that contains the coordinates of the points that defines the path

Value

A list of 3 elements. 'dist' is the minimum distance between each points and the lines, 'proj' is the projection from the point on the line, 'which_line' is the index of the line where the point is projected.


mgerault/drawYpath documentation built on July 14, 2022, 10:28 a.m.