Detrend time series data

detrend(time, values)

Arguments

time

Numeric vector containing the timestamp values.

values

Numeric vector the same length as time.

Value

Numeric vector with detrended values.