knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development. license

Note: The data feeds used by this package are no longer publicly available, so this package does not work

acewater provides an interface to the real-time water monitoring data provided by the Water Management Section of the Seattle District Corps of Engineers, which covers most of Washington, Northern Idaho, and Northwestern Montana. The main function, get_water_conditions returns a tidy data frame (a tibble).

Installation

You can install acewater from github with:

# install.packages("devtools")
devtools::install_github("briandconnelly/acewater")

Example

Get the current conditions at the Grand Coulee Dam (GCL), part of the Eastern Washington Rivers (EWA) project:

library(acewater)

(gcl <- get_water_conditions(station = "GCL", project = "EWA"))

We can easily plot the water conditions for a given station (if ggplot2 is installed).

library(ggplot2)

autoplot(gcl)

Get the most recent conditions at the Fremont Bridge (station FBLW) in the Lake Washington Ship Canal (project LKW):

Here, we see that this station monitors different properties:

(fblw <- get_water_conditions(station = "FBLW", project = "LKW"))
autoplot(fblw)

Get Conditions from Multiple Stations

We can use purrr to combine data from multiple stations into a tidy data frame. Here, we'll get data from a few stations along the Lake Washington Ship Canal.

(lkw <- purrr::map_df(c("UBLW", "FBLW", "LLLW"), get_water_conditions, project = "LKW"))
autoplot(lkw)

Data Subject to Revision

Because the data retrieved by acewater are preliminary and have not been verified or approved by the agencies collecting them, inaccuracies may be present due to instrument malfunctions or physical changes at the measurement site.

Contributer Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



briandconnelly/acewater documentation built on April 28, 2021, 2:13 a.m.