Skip to content
Prev 25591 / 29559 Next

dnearneigh() from spdep: Points with the exact same location are not considered neighbours.

Do not post HTML-mail, only plain text. Your example is not reproducible 
because you used HTML-mail.

Please read the help file, the bounds are described as being between lower 
(greater than) and upper (less than or equal to) bounds. Since the 
distance between identical points is strictly zero, they are not 
neighbours because the distance must be > d1 and <= d2. If d1 is < 0, it 
is reset to 0, as it is assumed that a negative lower bound is a user 
error (and it would break the underlying compiled code).

In any case, no reasonable cross-sectional spatial process has duplicated 
point (nugget) observations in situations in which spatial weights would 
be used (spatio-temporal panels will have, but then time differs).

Hope this clarifies,

Roger
On Wed, 12 Apr 2017, Ma?l Le Noc via R-sig-Geo wrote: