knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
WORK IN PROGRESS
Downloading data from the major database of hydrological data in Brazil (Hidroweb - National Water Agency (ANA) from R.
You can install hidrowebdown from GitHub with:
# install.packages("devtools") devtools::install_github("lhmet/hidrowebdown")
You can choose a hydrological station looking at the data hidroweb_metadata
.
library(hidrowebdown) # metadata head(hidroweb_metadata) comment(hidroweb_metadata)
To download data, for some stations:
stns <- c("42650000", "00252001") opts <- c("Vazao", "Chuva") down_stns <- hidroweb_down(stations = stns, options = opts, verbose = TRUE, dest.dir = "../", meta = TRUE) down_stns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.