tidyMK: Tidy Mann Kendal Result Table

Description Usage Arguments Details Value

View source: R/tidyMK.R

Description

This function uses the MannKendall() function from the Kendall package and applies the default two-sided test. The values tested must be either a vector of numeric or time series values.

Usage

1
tidyMK(ygDataList, valueColumn, idLabel = "Site")

Arguments

ygDataList

A list of data.frame or tibble data objects providing station data.

valueColumn

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

idLabel

A character string to label the id column.

Details

Calculate and return tidy data.frame of Mann Kendall results

Value

A data.frame of test results: Mann-Kendall tau and 2-sided p-value. One row per dataframe in the provided list.


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