na.contiguous             package:stats             R Documentation

_F_i_n_d _L_o_n_g_e_s_t _C_o_n_t_i_g_u_o_u_s _S_t_r_e_t_c_h _o_f _n_o_n-_N_A_s

_D_e_s_c_r_i_p_t_i_o_n:

     Find the longest consecutive stretch of non-missing values in a
     time series object.  (In the event of a tie, the first such
     stretch.)

_U_s_a_g_e:

     na.contiguous(frame)

_A_r_g_u_m_e_n_t_s:

   frame: a univariate or multivariate time series.

_V_a_l_u_e:

     A time series without missing values.  The class of 'frame' will
     be preserved.

_S_e_e _A_l_s_o:

     'na.omit' and 'na.omit.ts'; 'na.fail'

_E_x_a_m_p_l_e_s:

     data(presidents)
     na.contiguous(presidents)

