Package: spanishoddata 0.2.5

spanishoddata: Get Spanish Origin-Destination Data
Gain seamless access to origin-destination (OD) data from the Spanish Ministry of Transport, hosted at <https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/opendata-movilidad>. This package simplifies the management of these large datasets by providing tools to download zone boundaries, handle associated origin-destination data, and process it efficiently with the 'duckdb' database interface. Local caching minimizes repeated downloads, streamlining workflows for researchers and analysts. Methods described in Kotov et al. (2026) <doi:10.1177/23998083251415040>. Extensive documentation is available at <https://ropenspain.github.io/spanishoddata/index.html>, offering guides on creating static and dynamic mobility flow visualizations and transforming large datasets into analysis-ready formats.
Authors:
spanishoddata_0.2.5.tar.gz
spanishoddata_0.2.5.zip(r-4.7)spanishoddata_0.2.5.zip(r-4.6)spanishoddata_0.2.5.zip(r-4.5)
spanishoddata_0.2.5.tgz(r-4.6-any)spanishoddata_0.2.5.tgz(r-4.5-any)
spanishoddata_0.2.5.tar.gz(r-4.7-any)spanishoddata_0.2.5.tar.gz(r-4.6-any)
spanishoddata_0.2.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
spanishoddata/json (API)
NEWS
| # Install 'spanishoddata' in R: |
| install.packages('spanishoddata', repos = c('https://ropenspain.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ropenspain/spanishoddata/issues
Pkgdown/docs site:https://ropenspain.github.io
cdrdatadata-packagemobile-telephone-datamobilityorigin-destinationquarto
Last updated from:0a5b12fdb2. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 225 | ||
| source / vignettes | OK | 229 | ||
| linux-release-x86_64 | OK | 190 | ||
| macos-release-arm64 | OK | 140 | ||
| macos-oldrel-arm64 | OK | 129 | ||
| windows-devel | OK | 147 | ||
| windows-release | OK | 169 | ||
| windows-oldrel | OK | 262 | ||
| wasm-release | OK | 166 |
Exports:spod_available_dataspod_check_filesspod_citespod_codebookspod_connectspod_convertspod_disconnectspod_downloadspod_getspod_get_data_dirspod_get_valid_datesspod_get_zonesspod_quick_get_odspod_quick_get_zonesspod_set_data_dir
Dependencies:askpassbackportsbase64encbitbit64cachemcheckmateclassclassIntclicliprcpp11crayoncurlDBIdigestdplyrduckdbe1071fastmapfsgenericsgluehmshttr2jsonliteKernSmoothlifecyclelubridatemagrittrMASSmemoiseopensslparallellypaws.commonpaws.storagepillarpkgconfigprettyunitsprogressproxypurrrR6rappdirsrbibutilsRcppRdpackreadrrlangs2sfstringistringrsystibbletidyselecttimechangetzdbunitsutf8vctrsvroomwithrwkxml2
Codebook and cookbook for v1 (2020-2021) Spanish mobility data
Rendered fromv1-2020-2021-mitma-data-codebook.qmdusingquarto::htmlon Jun 05 2026.Last update: 2026-02-24
Started: 2024-08-27
Codebook and cookbook for v2 (2022 onwards) Spanish mobility data
Rendered fromv2-2022-onwards-mitma-data-codebook.qmdusingquarto::htmlon Jun 05 2026.Last update: 2026-03-23
Started: 2024-08-27
Download and convert mobility datasets
Rendered fromconvert.qmdusingquarto::htmlon Jun 05 2026.Last update: 2026-02-24
Started: 2024-08-27
Quicky get daily data
Rendered fromquick-get.qmdusingquarto::htmlon Jun 05 2026.Last update: 2026-02-24
Started: 2024-12-02
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Get available data list | spod_available_data |
| Check cached files consistency against checksums from S3 | spod_check_files |
| Cite the package and the data | spod_cite |
| View codebooks for v1 and v2 open mobility data | spod_codebook |
| Connect to data converted to 'DuckDB' or hive-style 'parquet' files | spod_connect |
| Convert data from plain text to duckdb or parquet format | spod_convert |
| Safely disconnect from data and free memory | spod_disconnect |
| Download the data files of specified type, zones, and dates | spod_download |
| Get tabular mobility data | spod_get |
| Get the data directory | spod_get_data_dir |
| Get valid dates for the specified data version | spod_get_valid_dates |
| Get zones | spod_get_zones |
| Get daily trip counts per origin-destionation municipality from 2022 onward | spod_quick_get_od |
| Get the municipalities geometries | spod_quick_get_zones |
| Set the data directory | spod_set_data_dir |
