flanner: flanner.

Description Usage Arguments Details

Description

flanner.

Precompute a nearest neighbours lookup index for later queries.

Usage

1
flanner(df, cols = NULL, may.contain.NA = TRUE, maxleaf = 10)

Arguments

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)

Details

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


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