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.

