methodUtilities           package:methods           R Documentation

_U_t_i_l_i_t_y _F_u_n_c_t_i_o_n_s _f_o_r _M_e_t_h_o_d_s _a_n_d _S-_P_l_u_s _C_o_m_p_a_t_i_b_i_l_i_t_y

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

     These are utilities, currently in the methods package, that either
     provide some functionality needed by the package (e.g., element
     matching by name), or add compatibility with S-Plus, or both.

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

     functionBody(fun=sys.function(sys.parent()))

     allNames(x)

     getFunction(name, generic=TRUE, mustFind=TRUE, where)

     el(object, where)

     elNamed(x, name, mustFind=FALSE)

     formalArgs(def)

     Quote()

     message(...)

     showDefault(object, printTo = stdout(), oldMethods = TRUE)

_S_u_m_m_a_r_y _o_f _F_u_n_c_t_i_o_n_s:

     `_a_l_l_N_a_m_e_s': the character vector of names (unlike `names()', never
          returns `NULL').

     `_g_e_t_F_u_n_c_t_i_o_n': find the object as a function.


     `_e_l_N_a_m_e_d': get the element of the vector corresponding to name. 
          Unlike the `[', `[[', and `$' operators, this function
          requires `name' to match the element name exactly (no partial
          matching).

     `_f_o_r_m_a_l_A_r_g_s': Returns the names of the formal arguments of this
          function.


     `_e_x_i_s_t_s_F_u_n_c_t_i_o_n': Is there a function of this name?  If `generic'
          is `FALSE', generic functions are not counted. 


     `_f_i_n_d_F_u_n_c_t_i_o_n': return all the indices of the search list on which
          a function definition for `name' exists.  

          If `generic' is `FALSE', ignore generic functions.

     `_m_e_s_s_a_g_e': Output all the arguments, pasted together with no
          intervening spaces.

     `_s_h_o_w_D_e_f_a_u_l_t': Utility, used to enable `show' methods to be called
          by the automatic printing (via `print.default').

