
Summary table of daily data
daily_gwl_summary.RdSummary table of daily data
Arguments
- gw_level_dv
data frame, daily groundwater level data. Often obtained from
read_waterdata_daily. UseNULLfor no daily data.- gwl_data
data frame returned from
read_waterdata_field_measurements, or data frame with a date, value, and approval columns. UseNULLfor no discrete data.- parameter_cd
Can be used to filter data if the data frame has a "parameter_code" column. The default is
NA, which will not do any filtering. If the gwl_data and gw_level_dv need different parameter code filtering, use a vector of 2 parameter codes. The first one will filter the gw_level_dv data frame, the second will filter the gwl_data data frame.- date_col
the name of the time columns. The first value is associated with the gw_level_dv input, and the second value is associated with the gwl_data input. The default is
c("time", "time").- value_col
the name of the value columns. The first value is associated with the gw_level_dv input, and the second value is associated with the gwl_data input. The default is
c("value", "value").- approved_col
the name of the column to get provisional/approved status. The first value is associated with the gw_level_dv input, and the second value is associated with the gwl_data input. The default is
c("approval_status", "approval_status"). It is expected that these columns will have only "Approved" or "Provisional".
Examples
site <- "USGS-263819081585801"
p_code_dv <- "62610"
statCd <- "00001"
# gw_level_dv <- dataRetrieval::read_waterdata_daily(monitoring_location_id = site,
# parameter_code = p_code_dv,
# statistic_id = statCd)
gw_level_dv <- L2701_example_data$Daily
daily_gwl_summary(gw_level_dv,
gwl_data = NULL,
parameter_cd = p_code_dv)
#> begin_date end_date days percent_complete lowest_level p5 p10
#> 1 1978-10-01 2025-03-31 16275 96 -51.08 -37.85 -33.36
#> p25 p50 p75 p90 p95 highest_level
#> 1 -27.53 -20.98 -15.75 -11.38 -9 -2.81
# gwl_data <- dataRetrieval::read_waterdata_field_measurements(monitoring_location_id = site)
gwl_data <- L2701_example_data$Discrete
daily_gwl_summary(gw_level_dv,
gwl_data = gwl_data,
parameter_cd = p_code_dv)
#> begin_date end_date days percent_complete lowest_level p5 p10
#> 1 1978-10-01 2025-04-01 16762 99 -51.3 -37.94 -33.47
#> p25 p50 p75 p90 p95 highest_level
#> 1 -27.67 -21.1 -15.83 -11.44 -9.06 -2.81