get_mob_idx: Get Citymapper's mobility index

Description Usage Arguments Value

View source: R/get_mob_idx.R

Description

As of mid-March Citymapper has launched a City Mobility index to observe which cities are following lockdown measures during COVID-19 pandemic. Data is calculated comparing the number of trips planned on the app to a typical usage period. Here for a detailed description.

Usage

1
2
3
4
5
6
7
8
get_mob_idx(
  start_date = "2020-01-01",
  end_date = Sys.Date(),
  city = NA,
  weekly = FALSE,
  cache = TRUE,
  verbose = FALSE
)

Arguments

start_date

First observed day with format YYYY-MM-DD

end_date

Last observed day with format YYYY-MM-DD

city

(optional) A vector containing specific cities to filter for (e.g "milan", lower-case). This obviously follow Citymapper's coverage.

weekly

Get weekly data (default is daily)

cache

(bool) cache results to filesystem

verbose

Show download progress bar

Value

A data frame containing the following columns:


andodet/citymappR documentation built on Oct. 18, 2021, 6:11 p.m.