Using website to retrieve data is great interactive way to search and explore data of interest. Let’s start our week by searching some data on the data repository DateONE: https://search.dataone.org/data
In case you need some inspiration, look at this dataset about historic precipitation in Alaska: https://doi.org/10.5063/N29VCQ
Although discovering data through a web interface is convenient and offers a great experience, it is often hard to scale this approach or to integrate it into a reproducible workflow.
dataRetrieval
R package to retrieve hydrological dataUSGS is managing a vast network of gauges to monitor freshwater across the US.
Start a new Markdown document to plot the discharge time-series for the Ventura River from 2019-10-01 to 2020-10-05
Webpage: https://waterdata.usgs.gov/nwis/uv?site_no=11118500
Tutorial for the package can be found here: https://cran.r-project.org/web/packages/dataRetrieval/vignettes/dataRetrieval.html#daily-data
How would you try to determine when this stream gauge record started using the API?
metajam
The metajam
R package relies on the dataONE API to download data and metadata into your R Environment. It is currently supporting KNB, ADC and EDI repositories because they rely on the metadata standard EML.
Short intro to the package
Let’s determine what percentage of Alaskan household are speaking only English!
The data: https://doi.org/10.5063/F1N58JPP
household_language.csv
using metajamHow does it compare to French?