s2cellstring: Retreive string representation of a s2cell

Description Usage Arguments

View source: R/s2cell.R

Description

Retreive string representation of a s2cell

Usage

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

Arguments

x

Input to retrieve string representations from. Current options are a vector of s2cellid tokens, 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(id) 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 Feb. 11, 2018, 11:33 p.m.