View source: R/matchPointsToLines.R
matchPointsToLines | R Documentation |
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.
matchPointsToLines(points, lines, getIndex = FALSE)
points |
Points to attach. |
lines |
Lines to attach to. |
getIndex |
Get the index returned and not the data. |
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.
Petros Koutsolampros
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.