This is a basic dataRetrieval tutorial for USGS water data in R in which we highlight new functionality for dataRetrieval and the new Water Data APIs.
Tag: DataRetrieval
Add assertion tests to your functions to ensure assumptions are met and errors are helpful.
Quarto provides easier-than-ever ways to create data-driven, reproducible documents. This blog demonstrates how to use custom code templates to easily replicate code chunks with a reproducible USGS streamgage example!
Tips and example R scripts for converting long-formatted data into wide tabular format
Improve your functions with helpful dataframe evaluation patterns.
hyswap is an open-source Python package that is designed to enable cooperators, stakeholders and the public to calculate summary hydrologic statistics and create maps, tables and visualizations for critical decision-making. Access the package at https://github.com/DOI-USGS/hyswap .
Iterate your R code using the map() function from the purrr package.
Write functions in R that run better and are easier to understand.
Learn the ropes building your own functions in R using water data examples.

