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

