Skip to contents

Estimate annual medians by segment for chlorophyll, secchi, and total nitrogen data

Usage

anlz_medpep(dat)

Arguments

dat

data.frame formatted from read_pepwq

Value

Median estimates for chlorophyll, secchi, and total nitrogen

Examples

# view median estimates
anlz_medpep(rawdat)
#> $ann
#> # A tibble: 1,152 × 5
#>    bay_segment    yr   val est    var  
#>    <fct>       <dbl> <dbl> <chr>  <chr>
#>  1 1a           2021  9.35 lwr.ci chla 
#>  2 1a           2021 13.6  medv   chla 
#>  3 1a           2021 18.9  upr.ci chla 
#>  4 1a           2020  5.17 lwr.ci chla 
#>  5 1a           2020  6.74 medv   chla 
#>  6 1a           2020 10.1  upr.ci chla 
#>  7 1a           2019  4.75 lwr.ci chla 
#>  8 1a           2019  6.46 medv   chla 
#>  9 1a           2019 12.5  upr.ci chla 
#> 10 1a           2018  5.08 lwr.ci chla 
#> # ℹ 1,142 more rows
#> 
#> $mos
#> # A tibble: 4,608 × 6
#>    bay_segment    yr    mo   val est   var  
#>    <fct>       <dbl> <dbl> <dbl> <chr> <chr>
#>  1 1a           2021    12 NA    medv  chla 
#>  2 1a           2021    11 NA    medv  chla 
#>  3 1a           2021    10 NA    medv  chla 
#>  4 1a           2021     9 NA    medv  chla 
#>  5 1a           2021     8 NA    medv  chla 
#>  6 1a           2021     7 56.0  medv  chla 
#>  7 1a           2021     6 17.8  medv  chla 
#>  8 1a           2021     5  9.62 medv  chla 
#>  9 1a           2021     4  7.86 medv  chla 
#> 10 1a           2021     3 17    medv  chla 
#> # ℹ 4,598 more rows
#>