s2lookup: Look up IDs in a given s2index (beta version)

View source: R/s2index.R

s2lookupR Documentation

Look up IDs in a given s2index (beta version)

Description

Look up given s2cellids in a s2index and return the matching indices (without replication). Expect changes to the API or even complete removal of the function. Only for testing at the moment!

Usage

s2lookup(id, index)

Arguments

id

Cell ids in the s2cellid format.

index

Index where the ids should be looked up.

Value

Vector of integers matching the s2cellids.


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