tidySens: Tidy Sens Slope Result Table

Description Usage Arguments Details Value

View source: R/tidySens.R

Description

Uses the sens.slope() function from the trend package to calculate a slope estimate with 95% confidence intervals and a significance level (p-value) of the slope estimate. The values tested must be either a numeric vector or time series object, present as a column in a data.frame or list of data.frames.

Usage

1
tidySens(data, Column, idLabel = "Site")

Arguments

data

A data.frame or list of data.frame objects providing data. Data points must be ordered from oldest to youngest in each data.frame. Use as.data.frame if selecting an item from a list.

Column

The column name, character or integer, of the data values to be tested.

idLabel

A character string to label the id column (eg. "Station", "Site", "Creek").

Details

Calculate and return a tidy data.frame of Sen's slope results

Value

A data.frame of test results: number of points and high and low confidence intervals. One row per dataframe in the provided list.


gdelaplante/WRBTrends documentation built on Feb. 18, 2022, 2:36 a.m.