aopdata: Data from the Access to Opportunities Project

logo

aopdata is an R package to download data from the Access to Opportunities Project (AOP). The AOP is a research initiative led by the Institute for Applied Economic Research (Ipea) with the aim to study transport accessibility and inequalities in access to opportunities in Brazilian cities.

The aopdata package brings annual estimates of access to employment, health and education services by transport mode, as well as data on the spatial distribution of population, schools and healthcare facilities at a fine spatial resolution for all cities included in the study. Data for 2019 are already available, and cover accessibility estimates by active transport modes (walking and cycling) for the 20 largest cities in the country, and by public transport for 7 major cities. For more information on the AOP website.

Installation R

# From CRAN
  install.packages("aopdata")
  library(aopdata)
  

Basic Usage

Read accessibility estimates

# Just a data.frame, without spatial geometry
cur <- read_access(city = 'Curitiba', mode = 'walk', year = 2019)

# An sf dataframe, with spatial geometry
cur <- read_access(city = 'Curitiba', mode = 'walk', year = 2019, geometry = TRUE)

Read only population and land use data

# Just a data.frame, without spatial geometry
df <- read_landuse(city = 'Fortaleza', year = 2019)

# An sf dataframe, with spatial geometry
df <- read_landuse(city = 'Fortaleza', year = 2019, geometry = TRUE)

Read only the spatial grid

# Read specific city
df <- read_grid(city = 'Fortaleza')

For all of the functions above, note that:

df <- read_access(city = 'cur', mode = 'public_transport', year = 2019)
df <- read_grid(city = 'for')
all <- read_landuse(city = 'all', year = 2019)

Citation ipea

The R package aopdata is developed by a team at the Institute for Applied Economic Research (Ipea), Brazil. If you use this package in research publications, please cite it as one of the publications below: