twDiffTS: twDiffTS

Description

Approximation of the derivative dy/dx

Usage

1
twDiffTS(y, x, na.rm = TRUE, doSort = TRUE)

Arguments

y
x
na.rm

can be set to FALSE for performance reasons

doSort

can be set to FALSE for performance reasons

Value

numeric vector of length( x[!is.na(x)] ) with two sided difference approximation (y_+1 - y_-1)/(x_+1 - x_-1) and single sided approximations at the edges

Author(s)

Thomas Wutzler


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.