This R package has functions to read and filter data on the usage of trains, particularly subways, in New York City. It automatically downloads the raw data from the official website of the Metropolitan Transportation Authority (MTA). The code was originally written to quantify the decline in subway usage due to COVID-19.
You can install the package with remotes::install_github
. Set the environment variable MTA_TURNSTILE_DATA_DIR
to control where downloads and results are cached.
This program is copyright 2020 Kodi B. Arfer.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.