getSpatialNeighbors: Adjacency weight matrix by Delaunay triangulations in 2D or...

View source: R/main.R

getSpatialNeighborsR Documentation

Adjacency weight matrix by Delaunay triangulations in 2D or 3D

Description

Adjacency weight matrix by Delaunay triangulations.

Usage

getSpatialNeighbors(pos, filterDist = NA, binary = TRUE, verbose = FALSE)

Arguments

pos

Position

filterDist

Euclidean distance beyond which two cells cannot be considered neighbors

binary

Boolean of whether to binarize output; otherwise Euclidean distances provided

verbose

Verbosity

Value

Matrix where value represents distance between two spatially adjacent cells ie. neighbors

Examples

data(mOB)
pos <- mOB$pos
w <- getSpatialNeighbors(pos)


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