knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

Travis build status Lifecycle: experimental

h3inr

Brings Uber h3 to R via V8.

Installation

You can install the package from Github:

# install.packages("remotes")
remotes::install_github("JohnCoene/h3inr")

Example

library(h3inr)

hexagons <- quakes %>% 
  geo_to_h3(lat, long, resolution = 4L) %>% # get hex id
  h3_to_geo(hex = hex) # get hex center coordinates

hexagons %>% 
  head() %>% 
  knitr::kable()

See globe4r for an example of what h3inr enables.



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