powered by
Function to match some points (SpatialPointsDataFrame) to the vertices of a graph.
find_vertices(spvertices, points, digits, tol = 0.1)
The spatial vertices of a graph (produced with build_graph)
the SpatialPointsDataFrame to match
The number of digits to keep from the coordinates
the maximum distance between a point and a vertex
A vector of the corresponding vertices id, multiple points may belong to the same vertex
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab