Description Usage Arguments Details
Find indices and time values of nearest neighbour points
1 | lookup_neighbour_indices(tt, points, k, only.indices = TRUE, ...)
|
tt |
|
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 |
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
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.