geo_to_h3: Coords to H3

Description Usage Arguments Value Examples

View source: R/core.R

Description

Turn coordinates into hexagon indices.

Usage

1
geo_to_h3(data, lat, lon, resolution = 7L)

Arguments

data

A data.frame, tibble containing lat and lon.

lat, lon

Coordinates to bin.

resolution

Hexbin resolution, see official documentation.

Value

The data as tibble with their corresponding hexagon index as hex column.

Examples

1
geo_to_h3(quakes, lat, long)

JohnCoene/h3inr documentation built on Oct. 30, 2019, 7:57 p.m.