clean_hydro: Clean raw hydrologic DBHYDRO data retrievals

View source: R/dbhydro_clean.R

clean_hydroR Documentation

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

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

## End(Not run)

ropenscilabs/dbhydroR documentation built on Feb. 5, 2024, 5 p.m.