View source: R/signal_detrend.R
signal_detrend | R Documentation |
The function removes a trend from a signal vector.
signal_detrend(data, method = "linear")
data |
|
method |
|
The method "simple"
subtracts a linear trend built from
the first and last sample of the data set. The method "linear"
uses the linear function as implemented in pracma::detrend.
Numeric
vector or list of vectors, detrended data set.
Michael Dietze
## load example data set
data(rockfall)
## remove linear trend from data set
rockfall_detrend <- signal_detrend(data = rockfall_eseis)
## compare data ranges
range(rockfall_eseis$signal)
range(rockfall_detrend$signal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.