process_tri | R Documentation |
This function imports and cleans raw toxic release data,
returning a single SpatVector
(points) object for the selected year
.
process_tri(
path = NULL,
year = 2018,
variables = c(1, 13, 12, 14, 20, 34, 36, 47, 48, 49),
extent = NULL,
...
)
path |
character(1). Path to the directory with TRI CSV files |
year |
integer(1). Single year to select. |
variables |
integer. Column index of TRI data. |
extent |
numeric(4) or SpatExtent giving the extent of the raster
if |
... |
Placeholders. |
a SpatVector
object (points) in year
year
is stored in a field named "year"
.
Visit TRI Data and Tools to view the available years and variables.
Insang Song, Mariana Kassien
https://www.epa.gov/toxics-release-inventory-tri-program/tri-toolbox
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
## Not run:
tri <- process_tri(
path = "./data",
year = 2020,
variables = c(1, 13, 12, 14, 20, 34, 36, 47, 48, 49)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.