yearly_trend: Compute descriptive statistics per year

Description Usage Arguments Value Examples

View source: R/yearly_trend.R

Description

Compute descriptive statistics per year

Usage

1
yearly_trend(s, type = c("monotonous", "median"))

Arguments

s

Data.frame output by yearly_stats().

type

Type of trend to test: "monotonous" for Mann-Kendall test for a monotonous trend (and plot of a loose polynomial fit to the data), "median" for a quantile regression of the median (and a plot of the corresponding regression result).

Value

Table with year and one column per statistic

Examples

1
2
3
s <- yearly_stats(ost$date, ost$benthic, bloom_threshold=200000)
yearly_trend(s)
yearly_trend(s, type="median")

jiho/coclimer documentation built on July 26, 2020, 4:02 a.m.