getS3method              package:utils              R Documentation

_G_e_t _A_n _S_3 _M_e_t_h_o_d

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

     Get a method for an S3 generic, possibly from a namespace.

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

     getS3method(f, class, optional = FALSE)

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

       f: character: name of the generic.

   class: character: name of the class.

optional: logical: should failure to find the generic or a method be
          allowed?

_D_e_t_a_i_l_s:

     S3 methods may be hidden in packages with namespaces, and will not
     then be found by 'get': this function can retrieve such functions,
     primarily for debugging purposes.

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

     The function found, or 'NULL' if no function is found and
     'optional = TRUE'.

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

     'methods', 'get'

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

     require(stats)
     exists("predict.ppr") # false
     getS3method("predict", "ppr")

