Skip to contents

Get attainment categories for each year and bay segment using chlorophyll and secchi depth

Usage

anlz_attainpep(meddat, magdurout = FALSE, trgs = NULL)

Arguments

meddat

result returned from anlz_medpep

magdurout

logical indicating if the separate magnitude and duration estimates are returned

trgs

optional data.frame for annual bay segment water quality targets, defaults to peptargets

Value

A data.frame for each year and bay segment showing the attainment category

Examples

meddat <- anlz_medpep(rawdat)
anlz_attainpep(meddat)
#> # A tibble: 128 × 4
#>    bay_segment    yr chla_sd outcome
#>    <fct>       <dbl> <chr>   <chr>  
#>  1 1a           2021 3_3     red    
#>  2 1a           2020 2_NA    NA     
#>  3 1a           2019 2_3     red    
#>  4 1a           2018 2_3     red    
#>  5 1a           2017 3_3     red    
#>  6 1a           2016 3_3     red    
#>  7 1a           2015 2_3     red    
#>  8 1a           2014 2_NA    NA     
#>  9 1a           2013 3_2     red    
#> 10 1a           2012 3_3     red    
#> # ℹ 118 more rows