4  Data Sourcing

We source all results from the U.S. Water Quality Portal at https://www.waterqualitydata.us/ for the organization ID “KENAI_WQX”, via the dataRetrieval R package. A local copy of this data is cached and refreshed manually (see functions/refresh_wqp_data.R) rather than queried live on every render; the cache used to generate this report was last refreshed on October 20, 2026. Results from this cache populate the chapters throughout.

For an example of how data is prepared for submission to the Water Quality Portal, see Appendix A.

Warning: One or more parsing issues, call `problems()` on your data frame for details,
e.g.:
  dat <- vroom(...)
  problems(dat)