lookupKNNDataFrame: Nearest neighbour lookup

Description Usage Arguments Details

Description

Perform a nearest neighbour lookup using a precomputed index structure.

Usage

1

Arguments

pair

the spatial indexing structure to do lookups with respect to

points

A data.frame containing the points to lookup neighbours of

k

number of neighbours to find

Details

Note that this is a lower level function that does no kind of sanity checking, it may fail in strange ways if points has the an incorrect number of columns, and column names are not taken into account. Furthermore 0 based indices are returned.


rossklin/flanner documentation built on May 27, 2019, 11:39 p.m.