download_tri {amadeus} | R Documentation |
Download toxic release data
Description
The download_tri()
function accesses and downloads toxic release data from the U.S. Environmental Protection Agency's (EPA) Toxic Release Inventory (TRI) Program.
Usage
download_tri(
year = c(2018L, 2022L),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE
)
Arguments
year |
character(2). length of 4 each. Start/end years for downloading data. |
directory_to_save |
character(1). Directory to download files. |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1). Remove ( |
Value
NULL; Comma-separated value (CSV) files will be stored in
directory_to_save
.
Author(s)
Mariana Kassien, Insang Song
References
United States Environmental Protection Agency (2024). “TRI Basic Data Files: Calendar Years 1987 – Present.” https://www.epa.gov/toxics-release-inventory-tri-program/tri-data-action-0.
Examples
download_tri(
year = c(2021L, 2021L),
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE
)