has.close(X, r, Y=NULL, ...)
"has.close"(X,r, Y=NULL, ..., periodic=FALSE)
"has.close"(X,r, Y=NULL, ..., periodic=FALSE, sorted=FALSE)
"has.close"(X,r, Y=NULL, ..., periodic=FALSE, sorted=FALSE)"ppp" or "pp3" or "lpp".
X
(and Y, if given) are already sorted into increasing order of the
$x$ coordinates.
X.
(nndist(X) <= r)<="" code="">
or (nncross(X,Y,what="dist") <= r)<="" code="">. has.close(X,r) determines, for each point in the pattern X,
whether or not this point has a neighbour in the same pattern X
which lies at a distance less than or equal to r.
has.close(X,r,Y) determines, for each point in the pattern X,
whether or not this point has a neighbour in the other pattern
Y which lies at a distance less than or equal to r.
The function has.close is generic, with methods for
"ppp" and "pp3" and a default method.
=>=>nndist
has.close(redwood, 0.05)
with(split(amacrine), has.close(on, 0.05, off))
Run the code above in your browser using DataLab