trimNA                package:tframe                R Documentation

_T_r_i_m _N_A_s _f_r_o_m _T_i_m_e _S_e_r_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Trim NAs from the start and end of a time series object.

_U_s_a_g_e:

         trimNA(x, startNAs=TRUE, endNAs=TRUE)
         ## Default S3 method:
         trimNA(x, startNAs=TRUE, endNAs=TRUE)
         

_A_r_g_u_m_e_n_t_s:

       x: A time series matrix or an object of class TSdata.

startNAs: If FALSE then beginning NAs are not trimmed.

  endNAs: If FALSE   then ending NAs are not trimmed.

_D_e_t_a_i_l_s:

     Trim NAs from the ends of a time series object. Observations in a
     given period for all series are dropped if any one contains an NA.

_V_a_l_u_e:

     A time series object which is windowed to the subset of  data
     which is not NAs (usually the available data).

_E_x_a_m_p_l_e_s:

     trimNA(ts(rbind(NA, matrix(1:20,10,2)), start=c(1980,1), frequency=12))

