Reproducible Data Science in R: Iterate, Don’t Duplicate

blog
data science
Author

Dr. Joscelin Rocha-Hidalgo

Published

February 20, 2025

Buy me a coffeeBuy me a coffee


By Anthony Martinez

This article, part of the “Reproducible Data Science with R” series, emphasizes the importance of iteration over code duplication in R programming. It introduces the purrr::map_*() family of functions, which help avoid repetitive code by programmatically applying operations over data structures. The tutorial covers:

The article provides practical examples, particularly using the dataRetrieval package to fetch and process water data, showcasing how iteration enhances code efficiency and reproducibility.

  1. Link to article here: https://waterdata.usgs.gov/blog/rds-iterate/

Back to top