Learn R Programming

geeLite (version 1.0.2)

get_bins: Get H3 Bins for Shapes

Description

Generates H3 bins for the provided shapes at the specified resolution.

Usage

get_bins(shapes, resol)

Value

A data frame containing the H3 bins with columns for region ISO 3166 codes, bin IDs, and geometry.

Arguments

shapes

[mandatory] (sf) A simple features object containing geometries used for generating H3 bins.

resol

[mandatory] (integer) An integer specifying the resolution of the H3 grid.