s2cellid: Make s2cellids from points on the sphere

Description Usage Arguments Value

View source: R/s2cell.R

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

1
s2cellid(x, level = 30)

Arguments

x

Points on the sphere in a standard format.

level

Integer between 0 and 30 (incl).

Value

A character vector with s2cellids with the additional class s2cellid.


spatstat/spatstat.sphere documentation built on Feb. 11, 2018, 11:33 p.m.