knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
pangaear
is a data retrieval interface for the World Data Center PANGAEA (https://www.pangaea.de/). PANGAEA archieves published Earth & Environmental Science data under the following subjects: agriculture, atmosphere, biological classification, biosphere, chemistry, cryosphere, ecology, fisheries, geophysics, human dimensions, lakes & rives, land surface, lithosphere, oceans, and paleontology.
This package offers tools to interact with the PANGAEA Database, including functions for searching for data, fetching datasets by dataset ID, and working with the PANGAEA OAI-PMH service.
cat(paste(" -", paste(getNamespaceExports("pangaear"), collapse = "\n - ")))
Stable version
install.packages("pangaear")
Dev version
remotes::install_github('ropensci/pangaear')
library('pangaear')
This is a thin wrapper around the GUI search interface on the page https://www.pangaea.de/. Everything you can do there, you can do here.
pg_search(query = 'water', bbox = c(-124.2, 41.8, -116.8, 46.1), count = 3)
res <- pg_data(doi = '10.1594/PANGAEA.807580') res[[1]]
Search for data then pass DOI to data function.
res <- pg_search(query = 'water', bbox = c(-124.2, 41.8, -116.8, 46.1), count = 3) pg_data(res$doi[3])[1:3]
# Identify the service pg_identify() # List metadata formats pg_list_metadata_formats() # List identifiers pg_list_identifiers(from = Sys.Date() - 2, until = Sys.Date()) # List sets pg_list_sets() # List records pg_list_records(from = Sys.Date() - 1, until = Sys.Date()) # Get a record pg_get_record(identifier = "oai:pangaea.de:doi:10.1594/PANGAEA.788382")
pangaear
in R doing citation(package = 'pangaear')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.