Description Usage Arguments Details
flanner.
Precompute a nearest neighbours lookup index for later queries.
1 |
df |
data.frame containing points |
cols |
columns with respect to which to do lookups (defaults to all columns) |
may.contain.NA |
whether the data.frame can contain incomplete rows (which will be ignored) |
maxleaf |
maximum number of items in each leaf node (nanoflann suggests between 10 and 50, defaulting to 10) |
Returns df
with additional class "flanner" and any
attributes required to make efficient nearest neighbour
lookups using knn_lookup_rows
or
knn_lookup
.
Any rows containing NA are ignored, but row numbers
produced by lookup functions will take NA values into
account when computing indices (that is to say they will
return row numbers of df
, *not* row numbers of
df
after incomplete rows have been removed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.