nndist.s2pp: Nearest Neighbour Distance for Points on Sphere

View source: R/s2dist.R

nndist.s2ppR Documentation

Nearest Neighbour Distance for Points on Sphere

Description

Nearest Neighbour Distance for Points on Sphere

Usage

## S3 method for class 's2pp'
nndist(X, ..., k = 1, chordal = FALSE)

Arguments

X

Point pattern on the sphere of class "s2pp".

...

Further arguments passed to [spatstat.geom::nndist.pp3()]. Only the argument by can be used by this function.

k

Positive integer to calculate the kth nearest neighbour.

chordal

logical. Cordal distance cutting through the earth if TRUE. Otherwise, distance along the surface of the sphere if FALSE.

Value

Numeric vector (if length(k)=1) or matrix (if length(k)>1) of distances. If the additional argument by is used this may be a data.frame.

See Also

spatstat.geom::closepairs.


spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.