BasicFunctions            package:methods            R Documentation

_G_r_o_u_p _G_e_n_e_r_i_c _F_u_n_c_t_i_o_n_s

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

     These are group generic functions.  Methods defined for them will
     be used for any of the specific functions belonging to the
     particular group, provided no specific methods override.

     These functions should never be called directly (a suitable error
     message will result if they are).

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

     Arith(e1, e2)
     Compare(e1, e2)
     Ops(e1, e2)

     Math(x)
     Math2(x, digits)

     Summary(x, ..., na.rm = FALSE)

     Complex(z)

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

  e1, e2: Arguments to the various binary operators. 

       x: The argument to the `Math' or  `Summary' groups of functions.

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

     The functions belonging to the various groups are as follows:

     `_A_r_i_t_h' `"+", "-", "*", "^", "%%", "%/%", "/"'

     `_C_o_m_p_a_r_e' `"==", ">", "<", "!=", "<=", ">="'

     `_O_p_s' `"Arith", "Compare"'

     `_M_a_t_h' `"log", "sqrt", "log10", "cumprod", "abs", "acos", "acosh",
          "asin", "asinh", "atan", "atanh", "ceiling", "cos", "cosh",
          "cumsum", "exp", "floor", "gamma", "lgamma", "sin", "sinh",
          "tan", "tanh", "trunc"'

     `_M_a_t_h_2' `"round", "signif"'

     `_S_u_m_m_a_r_y' `"max", "min", "range", "prod", "sum", "any", "all"'

     `_C_o_m_p_l_e_x' `"Arg", "Conj", "Im", "Mod", "Re"'

     All the functions in these groups (other than the group generics
     themselves) are basic functions in R.  They are not by default
     generic functions, and many of them are defined as primitives,
     meaning that they do not have formal arguments.  However, you can
     still define methods for them.  The effect of doing so is to
     create a generic function with the appropriate arguments, in the
     environment where the method definition is to be stored.  It all
     works more or less as you might expect, admittedly via a bit of
     trickery in the background.

_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.

