## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----eval=FALSE----------------------------------------------------------
# # for stable version
# install.packages("CDECRetrieve")
#
# # for development version
# devtools::install_github("flowwest/CDECRetrieve")
## ------------------------------------------------------------------------
library(CDECRetrieve)
cdec_stations(station_id = "kwk") # get metadata for Keswick Dam
# show all locations near san francisco
cdec_stations(nearby_city = "san francisco")
# show all location in the sf bay river basin
cdec_stations(river_basin = "sf bay")
# show all station in Tehama county
cdec_stations(county = "tehama")
## ------------------------------------------------------------------------
library(magrittr)
library(leaflet)
cdec_stations(county = "tehama") %>%
map_stations(label = ~station_id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.