Skip to contents

Summarise TimeFish data by year

Usage

timefish_summary_by_year(
  data = timefish_join(),
  metric = c("abundance", "richness", "biomass")
)

Arguments

data

A joined TimeFish data frame, usually from timefish_join().

metric

One of abundance, richness, or biomass.

Value

A data frame with one row per year and a summary value.

Examples

timefish_summary_by_year(metric = "abundance")
#>    year      value
#> 1  2007   79.72000
#> 2  2008   91.42381
#> 3  2009   59.57463
#> 4  2010   69.03797
#> 5  2011  125.91489
#> 6  2012   83.62130
#> 7  2013 2311.14286
#> 8  2014   55.35160
#> 9  2015  679.88021
#> 10 2016  175.51542
#> 11 2017  178.40741
#> 12 2018  122.29231
#> 13 2019  101.17582
#> 14 2020 2317.40541
#> 15 2021 2112.39474
#> 16 2022 1165.88776
#> 17 2023 2321.63265
#> 18 2024   89.21429
#> 19 2025  154.62069
#> 20 2026  235.53153