Skip to contents

Get average concentrations for a sediment parameter by bay segment

Usage

anlz_sedimentave(
  sedimentdata,
  param,
  yrrng = c(1993, 2022),
  bay_segment = c("HB", "OTB", "MTB", "LTB", "TCB", "MR", "BCB"),
  funding_proj = "TBEP"
)

Arguments

sedimentdata

input sediment data.frame as returned by read_importsediment

param

chr string for which parameter to plot

yrrng

numeric vector indicating min, max years to include, use single year for one year of data

bay_segment

chr string for the bay segment, one to many of "HB", "OTB", "MTB", "LTB", "TCB", "MR", "BCB"

funding_proj

chr string for the funding project, one to many of "TBEP" (default), "TBEP-Special", "Apollo Beach", "Janicki Contract", "Rivers", "Tidal Streams"

Value

A data.frame object with average sediment concentrations for the selected parameter by bay segment

Details

Summaries for all bay segments are returned by default. The averages and confidence intervals are specific to the year ranges in yrrng.

See also

Examples

anlz_sedimentave(sedimentdata, param = 'Arsenic')
#> # A tibble: 7 × 8
#>   AreaAbbr   TEL   PEL Units   ave   lov   hiv grandave
#>   <fct>    <dbl> <dbl> <chr> <dbl> <dbl> <dbl>    <dbl>
#> 1 BCB       7.24  41.6 mg/kg  2.64 2.34   2.94     2.57
#> 2 HB        7.24  41.6 mg/kg  2.93 0.665  5.20     2.57
#> 3 LTB       7.24  41.6 mg/kg  2.93 2.47   3.40     2.57
#> 4 MR        7.24  41.6 mg/kg  1.66 1.37   1.95     2.57
#> 5 MTB       7.24  41.6 mg/kg  2.17 1.86   2.48     2.57
#> 6 OTB       7.24  41.6 mg/kg  3.24 0.707  5.78     2.57
#> 7 TCB       7.24  41.6 mg/kg  2.40 1.92   2.88     2.57