s2cellid: Make s2cellids from points on the sphere

View source: R/s2cell.R

s2cellidR Documentation

Make s2cellids from points on the sphere

Description

Create a vector of s2cellids corresponding to the cells at the given level containing the given points. The default level (30) corresponds to leaf cells (finest/maximal level).

Usage

s2cellid(x, level = 30)

Arguments

x

Points on the sphere in a standard format.

level

Integer between 0 and 30 (incl).

Value

A vector of doubles representing s2cellids with the additional class s2cellid.


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