try_detrend {dateutils}R Documentation

Remove low frequency trends from data

Description

Estimate low frequency trends via loess regression and remove them. If the function errors, return x (i.e. no trend)

Usage

try_detrend(x, outlier_rm = TRUE, span = 0.6)

Arguments

x

data

outlier_rm

T/F, remove outliers to estimate trends?

span

span for the loess regression

Value

Data with trends removed

Examples

try_detrend(c(1,3,6,7,9,11,14,15,17,18))

[Package dateutils version 0.1.5 Index]