View source: R/frequency_analysis.R
daily_frequency_table | R Documentation |
Calculates the historical max, mean, minimum, and number of available points for each day of the year
daily_frequency_table(
gw_level_dv,
gwl_data,
parameter_cd = NA,
date_col = NA,
value_col = NA,
approved_col = NA,
stat_cd = NA
)
gw_level_dv |
data frame, daily groundwater level data
from |
gwl_data |
data frame returned from dataRetrieval::readNWISgwl, or data frame with mandatory columns lev_dt (representing date), lev_age_cd (representing approval code), and a column representing the measured value (either lev_va, sl_lev_va, or value). |
parameter_cd |
If data in gw_level_dv comes from NWIS, the parameter_cd
can be used to define the value_col.
If the data doesn't come directly from NWIS services, this
can be set to |
date_col |
the heading of the date column. The default is |
value_col |
name of value column. The default is |
approved_col |
name of column to get provisional/approved status. |
stat_cd |
If data in gw_level_dv comes from NWIS, the stat_cd can be used to help define the value_col. |
a data frame giving the max, mean, min, and number of available days of data for each day of the year.
# site <- "263819081585801"
p_code_dv <- "62610"
statCd <- "00001"
# gw_level_dv <- dataRetrieval::readNWISdv(site, p_code_dv, statCd = statCd)
gw_level_dv <- L2701_example_data$Daily
daily_frequency_table(gw_level_dv,
NULL,
parameter_cd = "62610")
gwl_data <- L2701_example_data$Discrete
daily_frequency_table(gw_level_dv,
gwl_data,
parameter_cd = "62610")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.