read_us_tsca | R Documentation |
This function reads-in and automatically cleans the US EPA TSCA data set.
read_us_tsca(path)
path |
(Character) The path to the extracted CSV file. |
The function reads-in and cleans the US EPA TSCA data set into flat format.
Returns a data frame.
Tested with version 2022-02.
Raoul Wolf (https://github.com/RaoulWolf/)
## Not run: download.file( url = paste0( "https://www.epa.gov/system/files/other-files/2022-03/", "csv-non-cbi-tsca-inventory-022022.zip" ), destfile = "csv-non-cbi-tsca-inventory-022022.zip" ) unzip(zipfile = "csv-non-cbi-tsca-inventory-022022.zip") file_name <- list.files() path <- file_name[grepl(pattern = "TSCA", file_name)] tsca <- read_us_tsca(path) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.