s2dist: Distance on sphere

View source: R/s2dist.R

s2distR Documentation

Distance on sphere

Description

Distance on sphere

Usage

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 Jan. 27, 2023, 2:59 a.m.