fromDataFrame: Create a spatial index from data.frame

Description Usage Arguments Details

Description

Precomputes a spatial lookup structure for later nearest neighbour queries.

Usage

1
fromDataFrame(df, maxleaf = 10L)

Arguments

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)

Details

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).


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