Given a point pattern on a linear network, for each vertex of the network find the nearest data point.
Point pattern on a linear network (object of class
Character string specifying whether to return the nearest-neighbour distances, nearest-neighbour identifiers, or both.
Integer, or integer vector, specifying
For each vertex (node) of the linear network,
this algorithm finds the nearest data point to the vertex,
and returns either the distance from the vertex to its nearest
X, or the serial number of the nearest neighbour
X, or both.
k is an integer, then the
k-th nearest neighbour
is found instead.
k is an integer vector, this is repeated for each
A numeric vector, matrix, or data frame.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.