Retrieves historical carbon dioxide and temperature records from the Vostok ice core during the past 420,000 years. Source of data is the U.S. Department of Energy’s (DOE) Environmental System Science Data Infrastructure for a Virtual Ecosystem (ESS-DIVE). https://ess-dive.lbl.gov/ and https://cdiac.ess-dive.lbl.gov/trends/co2/vostok.html

get_paleo(use_cache = TRUE, write_cache = getOption("hs_write_cache"))

Arguments

use_cache

(boolean) Return cached data if available, defaults to TRUE. Use FALSE to fetch updated data.

write_cache

(boolean) Write data to cache, defaults to FALSE. Use TRUE to write data to cache for later use. Can also be set using options(hs_write_cache=TRUE)

Value

Invisibly returns a tibble with the age of the ice (years before C.E.), carbon dioxide (ppm) and temperature (degrees C).

get_paleo invisibly returns a tibble with Vostok ice core data: the age of the ice (years before C.E.), carbon dioxide (ppm) and temperature (degrees C).

Data are from: Barnola J; Raynaud D; Lorius C; Barkov N (2003): Historical Carbon Dioxide Record from the Vostok Ice Core (417,160 - 2,342 years BP) and Petit J R ; Raynaud D ; Lorius C ; Delaygue G ; Jouzel J ; Barkov N I ; Kotlyakov V M (2000): Historical Isotopic Temperature Record from the Vostok Ice Core. CDIAC.

References

Author

Hernando Cortina, hch@alum.mit.edu

Examples

# \donttest{ # Fetch Vostok paleo carbon and temperature data from cache if available: vostok <- get_paleo()
#> Warning: InternetOpenUrl failed: 'The server name or address could not be resolved'
#> Error in download.file(file_url, dl): cannot open URL 'http://cdiac.ess-dive.lbl.gov/ftp/trends/co2/vostok.icecore.co2'
# # Force cache refresh: vostok <- get_paleo(use_cache=FALSE)
#> Warning: InternetOpenUrl failed: 'The server name or address could not be resolved'
#> Error in download.file(file_url, dl): cannot open URL 'http://cdiac.ess-dive.lbl.gov/ftp/trends/co2/vostok.icecore.co2'
# # Review cache contents and last update dates: hockeystick_cache_details()
#> <hockeystick cached files> #> directory: C:\Users\hch\AppData\Local/R/cache/R/hockeystick #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/emissions.rds #> size: 1699.5 kB #> date: 2021-06-13 00:11:14 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/gisstemp.rds #> size: 5.3 kB #> date: 2021-06-13 00:10:57 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/hurricanes.rds #> size: 1.6 kB #> date: 2021-06-13 00:11:12 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/maunaloa.rds #> size: 9.5 kB #> date: 2021-06-13 00:10:56 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/seaice.rds #> size: 0.5 kB #> date: 2021-06-13 00:10:57 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/sealevel.rds #> size: 16.1 kB #> date: 2021-06-13 00:11:03 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/temp2k.rds #> size: 21.8 kB #> date: 2021-06-13 00:11:12 #>
# # Plot output using package's built-in ggplot2 settings plot_paleo(vostok) # }
#> Error in ggplot(dataset[dataset$name == "co2", ], aes(x = age_ice, y = value)): object 'vostok' not found