s2cellstring: Retreive string representation of a s2cell

View source: R/s2cell.R

s2cellstringR Documentation

Retreive string representation of a s2cell

Description

Retreive string representation of a s2cell

Usage

s2cellstring(x, level = 30L, binary = FALSE, zerotail = binary)

Arguments

x

Input to retrieve string representations from. Current options are a vector of s2cellids, a list of s2cells, or a three-column matrix representing points on the sphere.

level

Integer between 0 and 30 (incl.) to specify the desired s2cell level. Defaults to 30 for point data and is ignored for s2cell and s2cellid data.

binary

Logical to request binary representation where four subcells are represented as 00, 01, 10 and 11 rather than by 0, 1, 2, 3 which is the default.

zerotail

Logical to turn on/off zero-padding at the end when binary = TRUE.


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