getKnn: K nearest neighbors

View source: R/nearestNeighbor.R

getKnnR Documentation

K nearest neighbors

Description

K nearest neighbors in space based on position

Usage

getKnn(pos, k)

Arguments

pos

Position

k

Number of nearest neighbors

Value

Boolean matrix where value = 1 if two cells are considered adjacency ie. neighbors, else 0


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.