representation            package:methods            R Documentation

_D_e_s_c_r_i_b_e _A _C_l_a_s_s _R_e_p_r_e_s_e_n_t_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Constructs a description of a class (without verifying the
     validity of the description).  A convenience function in calls to
     `setClass'.

_U_s_a_g_e:

     representation(...)

_A_r_g_u_m_e_n_t_s:

     ...: The call to representation takes arguments that are single
          character strings.  Unnamed arguments are classes that a
          newly defined class extends; named arguments name the
          explicit slots in the new class, and specify what class each
          slot should have.

_D_e_t_a_i_l_s:

     The `representation' function applies tests for the validity of
     the arguments.  Each must specify the name of a class.

     The classes named don't have to exist when `representation' is
     called, but if they do, then the function will check for any
     duplicate slot names introduced by each of the inherited classes.

_V_a_l_u_e:

     The value is just the list of arguments, after these have been
     checked for validity.

_A_u_t_h_o_r(_s):

     John Chambers

_R_e_f_e_r_e_n_c_e_s:

     The web page <URL: http://www.omegahat.org/RSMethods/index.html>
     is the primary documentation.

     The functions in this package emulate the facility for classes and
     methods described in Programming with Data (John M. Chambers,
     Springer, 1998).  See this book for further details and examples.

_S_e_e _A_l_s_o:

     `setClass'

_E_x_a_m_p_l_e_s:

     ## representation for a new class with a directly define slot "smooth"
     ## which should be a "numeric" object, and extending class "track"
     representation("track", smooth ="numeric")

