read_grid {aopdata}R Documentation

Download spatial hexagonal grid H3

Description

Results of the AOP project are spatially aggregated on a hexagonal grid based on the global H3 index at resolution 8, with a size of 357 meters (short diagonal) and an area of 0.74 km2. More information about H3 at https://h3geo.org/docs/core-library/restable/. See documentation 'Details' for the data dictionary.

Usage

read_grid(city, showProgress = FALSE)

Arguments

city

Character. A city name or three-letter abbreviation. If city="all", results for all cities are loaded.

showProgress

Logical. Defaults to TRUE display progress bar

Value

An sf data.frame object

Data dictionary:

Data type column Description
geographic abbrev_muni Abbreviation of city name (3 letters)
geographic name_muni City name
geographic code_muni 7-digit code of each city
geographic id_hex Unique id of hexagonal cell

Examples


# Read spatial grid of a single city
nat <- read_grid(city = 'Natal', showProgress = FALSE)

# Read spatial grid of all cities in the project
# all <- read_grid(city = 'all', showProgress = FALSE)


[Package aopdata version 0.2.2 Index]