lookup_neighbour_indices: Index base nearest neighbour query

Description Usage Arguments Details

View source: R/dynpan.R

Description

Find indices and time values of nearest neighbour points

Usage

1
lookup_neighbour_indices(tt, points, k, only.indices = TRUE, ...)

Arguments

tt

time.table in which to look for points

points

points close to which to find neighbours

k

number of (closest) neighbours to find for each point

only.indices

whether to return only index values (rather than all columns) of the found neighbours

...

arguments passed on to knn_lookup

Details

Uses a precomputed (for example by flanner_by_measurement) indexing structure if available.

The returned data.table has the index and time columns of tt if only.indices is true, otherwise it has all columns of tt.

Any columns in points not used for lookup are copie over to the relevant rows of the resulting data.frame (useful for, for example, including keys/indices into the original points data.table).


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