View source: R/ch_tidyhydat_ECDE.R
ch_tidyhydat_ECDE | R Documentation |
Accessing daily flow data using tidyhydat is quick and efficient. However, it sometimes conflicts with other functions as tidyhydat changes variable names and some default entries. This function converts a tibble obtained from a tidyhydat tibble to a dataframe with standard Environment and Climate Change Canada Data Explorer (ECDE) names.
ch_tidyhydat_ECDE(data)
data |
Tibble of daily flows retrieved using tidyhydat function |
A dataframe or a list of flows with formats consistent with datafiles read using ch_read_ECDE_flows
:
ID |
stationID |
PARAM |
Parameter 1 for Flow 2 for Level |
Date |
original charater string converted to date format |
Flow |
Daily mean flow m^3/sec |
SYM |
Quality flag |
Paul Whitfield
ch_tidyhydat_ECDE_meta
library(tidyhydat) mdata <- hy_daily_flow(station_number=c("05CK004")) m_data <- ch_tidyhydat_ECDE(mdata) mdata <- hy_daily_flows(station_number=c("05CK004","08MF005","05BB001")) mnew <- ch_tidyhydat_ECDE(mdata) str(mnew[[1]]) str(mnew[[2]]) str(mnew[[3]]) #note the order is in increasing alphabetical order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.