detrend {sysid} | R Documentation |
Remove offsets and linear trends
Description
Removes offsets or trends from data
Usage
detrend(x, type = 0)
Arguments
x |
an object of class |
type |
argument indicating the type of trend to be removed (Default=
|
Details
R
by default doesn't allow return of multiple objects. The %=%
operator and g
function in this package facillitate this behaviour. See
the examples section for more information.
Value
A list containing two objects: the detrended data and the trend information
See Also
Examples
data(cstr)
datatrain <- dataSlice(cstr,end=4500)
datatest <- dataSlice(cstr,4501)
g(Ztrain,tr) %=% detrend(datatrain) # Remove means
g(Ztest) %=% detrend(datatest,tr)
[Package sysid version 1.0.4 Index]