Learn R Programming

spNetwork (version 0.1.1)

find_vertices: Match nodes and points

Description

Function to match some points (SpatialPointsDataFrame) to the vertices of a graph.

Usage

find_vertices(spvertices, points, digits, tol = 0.1)

Arguments

spvertices

The spatial vertices of a graph (produced with build_graph)

points

the SpatialPointsDataFrame to match

digits

The number of digits to keep from the coordinates

tol

the maximum distance between a point and a vertex

Value

A vector of the corresponding vertices id, multiple points may belong to the same vertex

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab