The default check is local and fast. It checks the two-digit base cell, resolution, hierarchy digits, and deleted pentagon subsequences. Strict validation additionally asks DGGRID (or dggridR for legacy cells) to resolve each syntactically valid identifier.
Arguments
- x
A
globalhex_cellor character vector.- grid
Grid definition for character input.
NULLuseshex_grid(). The attached grid is always used forglobalhex_cellinput.- strict
Whether to confirm syntactically valid identifiers with the relevant backend.
Examples
cell_is_valid(c("0203124", "99"))
#> [1] TRUE FALSE
cell_is_valid(point_to_cell(c(0, 0), 5))
#> [1] TRUE