dist_line | R Documentation |
Calculate distance between a line and set of points; several lines = path
dist_line(points, lines)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.