Downloads and Tidies the San Francisco Public Utilities Commission Beach Water Quality Monitoring Program Data

Downloads and tidies the San Francisco Public Utilities Commission Beach Water Quality Monitoring Program data. Data sets can be downloaded per beach, or the raw data can be downloaded. See < https://sfwater.org/cfapps/lims/beachmain1.cfm>.


SanFranBeachWater is a little R package that downloads the Beach Water Quality Monitoring Program data that the the San Francisco Public Utilities Commission maintain here. The data can be downloaded in raw form, or tables for individual beaches can be downloaded.

Installation

devtools::install_github("RobertMyles/SanFranBeachWater")

Usage

Get the data for China Beach:

library(SanFranBeachWater)
 
san_fran_china_beach()
#> 1  2017-06-05             20      0             0
#> 2  2017-05-30             20      0             0
#> 3  2017-05-22             41     10            10
#> 4  2017-05-15             10      0             0
#> 5  2017-05-08             30      0             0
#> 6  2017-05-01              0      0             0
#> 7  2017-04-24            171      0             0
#> 8  2017-04-17            110     20             0
#> 9  2017-04-10            110      0             0
#> 10 2017-04-03             41     20             0
#> 11 2017-03-27             98      0            10
#> 12 2017-03-24            132     20             0
#> 13 2017-03-20              0      0             0
#> 14 2017-03-13             20     20             0

💩

Or alternatively, just get the status of the beach ("Open" or "Closed"):

san_fran_windsurfer_circle(status = TRUE)
#> [1] "Current Beach Status: Open"

Sweet! 🏖

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SanFranBeachWater")

0.1.0 by Robert Myles McDonnell, a year ago


Browse source code at https://github.com/cran/SanFranBeachWater


Authors: Robert Myles McDonnell


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports xml2, rvest, lubridate, magrittr, tibble, dplyr, readr

Suggests testthat, knitr, rmarkdown


See at CRAN