Names.formula              package:nlme              R Documentation

_E_x_t_r_a_c_t _N_a_m_e_s _f_r_o_m _a _f_o_r_m_u_l_a

_D_e_s_c_r_i_p_t_i_o_n:

     This method function returns the names of the terms corresponding
     to the right hand side of 'object' (treated as a linear formula),
     obtained as the column names of the corresponding 'model.matrix'.

_U_s_a_g_e:

     ## S3 method for class 'formula':
     Names(object, data, exclude, ...)

_A_r_g_u_m_e_n_t_s:

  object: an object inheriting from class 'formula'.

    data: an optional data frame containing the variables specified in
          'object'. By default the variables are taken from the
          environment from which 'Names.formula' is called.

 exclude: an optional character vector with names to be excluded from
          the returned value. Default is 'c("pi",".")'.

     ...: some methods for this generic require additional arguments. 
          None are used in this method.

_V_a_l_u_e:

     a character vector with the column names of the 'model.matrix'
     corresponding to the right hand side of 'object' which are not
     listed in 'excluded'.

_A_u_t_h_o_r(_s):

     Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

_S_e_e _A_l_s_o:

     'model.matrix', 'terms', 'Names'

_E_x_a_m_p_l_e_s:

     data(Orthodont)
     Names(distance ~ Sex * age, data = Orthodont)

