annualtrend.ts: Explore long term annual trends with Theil-Sen Estimator

Description Usage Arguments Value Examples

View source: R/TheilSenTrendFunctions.R

Description

Calculates annual linear trend of average values and significance of with Theil-Sen Estimator (used for robust to non-normal data)

Usage

1
annualtrend.ts(record, valuecol, datecol, var, monthlybias = FALSE)

Arguments

record

dataframe with record of estimated water quality

valuecol

string, name of column with water quality values

datecol

string, name of column with dates

var

string, aggregator (e.g. mean, max)

monthlybias,

calculates annual average using monthly averages (in case of differing numbers of samples for each month)

Value

summary of the Theil-Sen estimator

Examples

1
2
3
data(estimatedrecord)
annualtrend.ts(record=estimatedrecord,valuecol="EstChlValue",
datecol="ImageDate",var="mean",monthlybias="TRUE")

RSAlgaeR documentation built on May 2, 2019, 3:48 p.m.