get_station_data: Data scraper for data from active stations in the Scripps...

Description Usage Arguments Examples

Description

Information for active stations is available at http://scrippsco2.ucsd.edu/data/atmospheric_co2/sampling_stations

Usage

1
2
get_station_data(stationURL, type = "daily_flask_co2",
  dataURL = "http://scrippsco2.ucsd.edu")

Arguments

baseURL

url for station information

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
safe_load <- purrr::safely(get_station_data)

library(wilydata)
scripps_data_co2 <- scripps_stations$Page %>%
  purrr::map_df(.f = function(s) {
   res <- safe_load(s, type="daily_flask_co2")
   if (!is.null(res$result)) {
     res$result$station_id <- basename(s)
   }
   res$result
 })

save(scripps_data_co2, file="../wilydata/data/scripps_data_co2.rda")

heike/wilyscraper documentation built on May 27, 2019, 3:30 p.m.