Description Usage Arguments Details
Precomputes a spatial lookup structure for later nearest neighbour queries.
1 | fromDataFrame(df, maxleaf = 10L)
|
df |
data.frame containing set of points (one per row) |
maxleaf |
maximum number of nodes in a leaf, trade off between faster queries and slower build times (small maxleaf) and slower queries and faster build times (large maxleaf) |
nanoflann documentation suggests a value between 10
(default) and 50 for query-heavy applications. As with
lookupKNNDataFrame
this is a lower level
function that performs no sanity checking (such as df
containing only finite numbers and no NA
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.