clean_hydro: Clean raw hydrologic DBHYDRO data retrievals

Description Usage Arguments Examples

View source: R/dbhydro_clean.R

Description

Converts output of get_hydro from long (each piece of data on its own row) to wide format (each site x variable combination in its own column). Metadata (station-name, variable, measurement units) is parsed so that it is wholly contained in column names.

Usage

1

Arguments

dt

data.frame output of gethydro

Examples

1
2
3
4
## Not run: 
clean_hydro(gethydro(dbkey = "15081", date_min = "2013-01-01", date_max = "2013-02-02", raw = TRUE))

## End(Not run)

dbhydroR documentation built on Feb. 22, 2021, 9:10 a.m.