get_trends: Calculate trends in variables

View source: R/new_functions.R

get_trendsR Documentation

Calculate trends in variables

Description

Calculates trends over time in climate and weather variables or climate departures

Usage

get_trends(dat, trend.type)

Arguments

dat

a matrix where each row is a cell or site and each column is a year

trend.type

a character vector indicating whether a Theil-Sen ("sen") or 'slope slope' ("ols") estimate should be returned

Value

a numeric vector equal to the number of rows (cells or sites) in dat


elizagrames/climetric documentation built on Nov. 1, 2022, 6:26 a.m.