Skip to content

Commit fd095b4

Browse files
committed
update applications.rmd
1 parent ebab111 commit fd095b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/Applications.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In this example we demonstrate a data 'mashup' by grabbing NRSA data from the EP
5858
```{r nars, results='hide'}
5959
UA <- paste('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0)',
6060
'Gecko/20100101 Firefox/98.0')
61-
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))
61+
nrsa <- read_csv("https://www.epa.gov/sites/production/files/2015-09/siteinfo_0.csv")
6262
6363
dplyr::glimpse(nrsa)
6464
@@ -90,7 +90,7 @@ nrsa_sf <- dplyr::left_join(nrsa_sf, df, by='COMID')
9090
# download mmi from NARS web page
9191
library(dplyr)
9292
library(ggplot2)
93-
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))
93+
mmi <- read_csv("https://www.epa.gov/sites/production/files/2015-09/bentcond.csv")
9494
# dplyr::glimpse(mmi)
9595
9696
# join mmi to NARS info data frame with StreamCat PctCrop metric

0 commit comments

Comments
 (0)