rtrend {Rsac} | R Documentation

## REMOVE LINEAR TREND OR MEAN

### Description

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).

### Usage

    rtrend(x)
    rmean(x)

### Arguments

`x` | an object of class `"rsac"`.

### Value

same as input.

### Author(s)

Eric M. Thompson <eric.thompson@tufts.edu>

### Examples

    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)

[Package Rsac version 0.1-8 Index]