Learn R Programming

h3jsr (version 1.3.1)

num_cells: Get total H3 cells

Description

This function returns total number of H3 cells at a given resolution.

Usage

num_cells(res = NULL, fast = TRUE)

Value

Numeric; H3 cell count.

Arguments

res

Integer; Desired H3 resolution. See https://h3geo.org/docs/core-library/restable/ for allowable values and related dimensions.

fast

Logical; whether to retrieve values from a locally stored table or recalculate from source.

Examples

Run this code
# Return cell count for resolution 8
num_cells(res = 8)

Run the code above in your browser using DataLab