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

