rtrend                 package:Rsac                 R Documentation

_R_E_M_O_V_E _L_I_N_E_A_R _T_R_E_N_D _O_R _M_E_A_N

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     rtrend(x)
     rmean(x)

_A_r_g_u_m_e_n_t_s:

       x: an object of class '"rsac"'.

_V_a_l_u_e:

     same as input.

_A_u_t_h_o_r(_s):

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

_E_x_a_m_p_l_e_s:

     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)

