read_od | R Documentation |
read_od()
download the data for a specific Origin Destination survey and
return it as a dataframe. It uses the cached data file if it was previously
downloaded to avoid extra networking consumption. To understand the returned
dataframe format, please reefer to the read_dictionary()
function for the
same survey cohort.
read_od(city = "São Paulo", year = 2017, harmonize = FALSE)
city |
Character. City of reference. Defaults to "São Paulo". |
year |
Numeric. Year of reference in the format |
harmonize |
Logical. When |
A "data.frame"
object.
library(odbr)
# return data from OD Surveys database as data.frame
df <- read_od(
city = "Sao Paulo",
year = 2017,
harmonize = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.