getcov                 package:lgtdl                 R Documentation

_A _f_u_n_c_t_i_o_n _t_o _e_x_t_r_a_c_t _t_h_e _c_o_v_a_r_i_a_t_e _f_r_o_m _a_n _o_b_j_e_c_t _o_f _c_l_a_s_s
_l_g_t_d_l.

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

     The covariate component of the 'lgtdl' object is returned.

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

     getcov(x, ...)
     getcov.lgtdl(x, cov, ...)

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

       x: The 'lgtdl' object. 

     cov: The name of the covariate to be extracted.  

     ...: Ignored, there for potential future use. 

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

     The covariate, as either a matrix or vector, is returned.

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

     Robert Gentleman

_S_e_e _A_l_s_o:

     'lgtdl', 'as.lgtdl'

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

       x1<-data.frame(time=c(1,3,5), cov=c(4,6,8))
       x2<-data.frame(time=c(11,13,15), interest=c(66,45,88))

       x1<-as.lgtdl(x1)
       x2<-as.lgtdl(x2)
       getcov(x1)
       getcov(x2)

