Skip to contents

Get attainment categories for a chosen year

Usage

anlz_yrattain(epcdata, yrsel, partialyr = FALSE)

Arguments

epcdata

data frame of epc data returned by read_importwq

yrsel

numeric indicating chosen year

partialyr

logical indicating if incomplete annual data for the most recent year are approximated by five year monthly averages for each parameter

Value

A data.frame for the chosen year and all bay segments showing the bay segment averages for chloropyll concentration, light attenuations, segment targets, and attainment categories.

Examples


# defaults to current year
anlz_yrattain(epcdata, yrsel = 2023)
#> # A tibble: 4 × 6
#>   bay_segment chla_val chla_target la_val la_target outcome
#>   <fct>          <dbl>       <dbl>  <dbl>     <dbl> <chr>  
#> 1 OTB             6.21         8.5  0.734      0.83 green  
#> 2 HB              6.93        13.2  0.791      1.58 green  
#> 3 MTB             3.68         7.4  0.472      0.83 green  
#> 4 LTB             2.60         4.6  0.536      0.63 green