listTypes               package:svMisc               R Documentation

_L_i_s_t _a_l_l _t_y_p_e_s _f_o_r _a _m_e_t_h_o_d

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

     List all types for a method; types are variants for a given method
     defined in a way it is easy to add other variants dynamically (on
     the contrary to a usual 'type=' or 'which=' argument, like in
     'plot.ts()' or 'plot.lm()', respectively.

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

     listTypes(method, class = "default", strict = FALSE)

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

  method: The method name 

   class: The class name. 

  strict: Do we list only types for the class ('TRUE'), or all possible
          types, including for inherited objects, and default ones
          ('FALSE', by default)? 

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

     A vector with character strings with methods' type names.

_N_o_t_e:

     This function is only useful for special generic functions with
     type argument like 'view', 'copy' or 'export'. These functions
     offer a mechanism to easily add custom types, and the present
     function list them. For S3 objects a type is simply a function
     whose name is : <method>..<type>.<class>. So, adding new <type>s
     for <method> is very easy to implement

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

     Philippe Grosjean <phgrosjean@sciviews.org>

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

     'listMethods'

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

     listTypes("view")  # All default view types currently defined
     listTypes("view", "data.frame")
     listTypes("view", "data.frame", TRUE) # None, except if you defined custom views!

