Skip to content

Commit

Permalink
update applications.rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mhweber committed Jan 18, 2024
1 parent ebab111 commit fd095b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/Applications.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ In this example we demonstrate a data 'mashup' by grabbing NRSA data from the EP
```{r nars, results='hide'}
UA <- paste('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0)',
'Gecko/20100101 Firefox/98.0')
nrsa <- (data.table::fread(httr::content(httr::GET("https://www.epa.gov/sites/production/files/2015-09/siteinfo_0.csv", httr::add_headers(`User-Agent` = UA)), encoding = "UTF-8", as = "text"),stringsAsFactors = FALSE, data.table = F))
nrsa <- read_csv("https://www.epa.gov/sites/production/files/2015-09/siteinfo_0.csv")
dplyr::glimpse(nrsa)
Expand Down Expand Up @@ -90,7 +90,7 @@ nrsa_sf <- dplyr::left_join(nrsa_sf, df, by='COMID')
# download mmi from NARS web page
library(dplyr)
library(ggplot2)
mmi <- (data.table::fread(httr::content(httr::GET("https://www.epa.gov/sites/production/files/2015-09/bentcond.csv", httr::add_headers(`User-Agent` = UA)), encoding = "UTF-8", as = "text"),stringsAsFactors = FALSE, data.table = F))
mmi <- read_csv("https://www.epa.gov/sites/production/files/2015-09/bentcond.csv")
# dplyr::glimpse(mmi)
# join mmi to NARS info data frame with StreamCat PctCrop metric
Expand Down

0 comments on commit fd095b4

Please sign in to comment.