matchPointsToLines: Match points to their closest line

View source: R/matchPointsToLines.R

matchPointsToLinesR Documentation

Match points to their closest line

Description

Matches (spatial-join) points to lines. Finds the point closest to a line. One point is attached to one line, thus if fewer points than lines are given then some lines will have no point attached.

Usage

matchPointsToLines(points, lines, getIndex = FALSE)

Arguments

points

Points to attach.

lines

Lines to attach to.

getIndex

Get the index returned and not the data.

Value

If getIndex is TRUE then the index of the points as they relate to the matching lines are given. If not, then the data from the points dataframe is returned.

Author(s)

Petros Koutsolampros


orange-vertex/rdepthmap documentation built on Oct. 26, 2023, 7:40 a.m.