rtrend {Rsac} | R Documentation |
Removes the linear trend or mean from SAC data.
Note that defailt of "spect" is to detrend
because that is the default for
spec.pgram
(see example below).
rtrend(x) rmean(x)
x |
an object of class "rsac" . |
same as input.
Eric M. Thompson <eric.thompson@tufts.edu>
x <- rsac.skeleton(1) x[[1]]$amp <- runif(1e3) x[[1]]$dt <- 1 plot(x) # DC offset: spect(x, detrend = FALSE) # Default detrends, removing DC: spect(x)