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.
clean_hydro(dt)
dt | data.frame output of |
---|
# NOT RUN { clean_hydro(gethydro(dbkey = "15081", date_min = "2013-01-01", date_max = "2013-02-02", raw = TRUE)) # }