dneigh: Construct neighbours list

Description Usage Arguments Details Value Author(s) References Examples

Description

This function identifies the neighbours features (points or polygons) given the specified distance and builds a list of neighbours.

Usage

1
dneigh(x,d1,d2,longlat,method,...)

Arguments

x

a SpatialPoints, or SpatialPolygons or a matrix (or data.frame) of point coordinates or a SpatialPoints object

d1

lower local distance bound

d2

upper local distance bound

longlat

TRUE if point coordinates are longitude-latitude

method

if x is SpatialPolygons, specifies the method to identify the neighbour polygons; see details

...

additional arguments; see details

Details

The function is mostly based on dnearneigh (for points), and poly2nb (for polygons), implemented in the spdep package by Roger Bivand.

When x is SpatialPolygons, there is two methods (can be specified through method) to identify the neighbour polygons. The default method ('bound') seeks the polygons that has one or more points in their boundaries within the specified distance (d), while the method 'centroid' considers any polygon with a centriod within the given distance.

One additional argument is queen (default is TRUE), can beused only when x is SpatialPolygons, and method='bound', if TRUE, a single shared boundary point meets the contiguity condition, if FALSE, more than one shared point is required

Value

An object of class neighbours

Author(s)

Babak Naimi naimi.b@gmail.com

http://r-gis.net

References

Naimi. B. et al. (under review) ELSA: An Entropy-based Local indicators of Spatial Association, Geographical Analysis;

Examples

1
#

elsa documentation built on May 2, 2019, 4:49 p.m.

Related to dneigh in elsa...