Learn R Programming

hexify (version 0.3.8)

hexify_index_to_cell: Convert index string to cell coordinates

Description

Decodes a hierarchical index string back to cell coordinates.

Usage

hexify_index_to_cell(
  index,
  aperture = 3L,
  index_type = c("auto", "z3", "z7", "zorder")
)

Value

List with face, i, j, and resolution

Arguments

index

Index string

aperture

Aperture (3, 4, or 7)

index_type

Index encoding used. Default "auto" infers from aperture.

See Also

Other hierarchical index: hexify_cell_to_index(), hexify_compare_indices(), hexify_default_index_type(), hexify_get_children(), hexify_get_parent(), hexify_get_resolution(), hexify_index_to_lonlat(), hexify_is_valid_index_type(), hexify_lonlat_to_index(), hexify_z7_canonical()

Examples

Run this code
cell <- hexify_index_to_cell("0012012", aperture = 3)

Run the code above in your browser using DataLab