Learn R Programming

s2 (version 0.4-0)

S2CellIdFromPoint: Make a Vector of 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 level).

Usage

S2CellIdFromPoint(x, level = 30L)

Arguments

x

Three-column matrix reprensenting the points.

level

Integer between 0 and 30 (incl).

Value

An object of class `S2CellId`.