knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

WORK IN PROGRESS

hidrowebdown

Downloading data from the major database of hydrological data in Brazil (Hidroweb - National Water Agency (ANA) from R.

Installation

You can install hidrowebdown from GitHub with:

# install.packages("devtools")
devtools::install_github("lhmet/hidrowebdown")

Example

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


lhmet/hidrowebdown documentation built on May 29, 2019, 12:07 a.m.