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

