s2dist: Distance on sphere

Description Usage Arguments Details Value

View source: R/s2dist.R

Description

Distance on sphere

Usage

1
s2dist(x, y)

Arguments

x

One or more points in a format acceptable to globe::ensurelonlat().

y

One or more points in a format acceptable to globe::ensurelonlat().

Details

If both x and y contain more than one point they must contain the same number of points and the distances between corresponding points are returned.

Value

Numeric vector of distances.


spatstat/spatstat.sphere documentation built on July 5, 2017, 11:47 p.m.