dbhydroR (version 0.2-7)

clean_hydro: Clean raw hydrologic DBHYDRO data retrievals

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

clean_hydro(dt)

Arguments

dt

data.frame output of gethydro

Examples

Run this code
# NOT RUN {
clean_hydro(gethydro(dbkey = "15081", date_min = "2013-01-01", date_max = "2013-02-02", raw = TRUE))
# }

Run the code above in your browser using DataCamp Workspace