Mathematical Function Groups and Group Generics

DESCRIPTION:

The Math Function groups are groups of functions for performing vectorized math. Methods can be written for the whole group or individual functions for arbitrary classes. That is, you can write a method for any or all of the functions in the group, or write a single method for the group as a whole.

USAGE:

Math(x)   # replace Math with any function in this group. 
Math2(x, digits)  # replace Math2 ...

DETAILS:

The Math group consists of functions with only one argument, typically a numeric vector or bdNumeric, for example, sin(x) .

The Math2 group consists of two functions with two arguments, one for the data and one to specify the number of digits, for example, round(x, 2) .

Math and Math2 are group generic functions. The current list of functions in each group may be found by doing getGroupMembers("Math") or getGroupMembers("Math2") . Additional information may be available for specific methods, via methods?Math) or methods?Math2) .

SEE ALSO:

, , , , , ,
individual functions in the Math group: , , , , , , , , , , , , , , , , , , , , , , , .
individual functions in the Math2 group: , .

EXAMPLES:

# The Math group of generic functions includes: 
#   Absolute value            abs 
#   Cumulative                cumsum, cumprod 
#   Exponential               exp, log, log10, sqrt 
#   Gamma function            gamma, lgamma 
#   Integer values            ceiling, floor, trunc 
#   Trigonometric             cos, sin, tan 
#   Inverse Trig              acos, asin, atan 
#   Hyperbolic Trig           cosh, sinh, tanh 
#   Inverse Hyperbolic Trig   acosh, asinh, atanh 
# The Math2 group of generic functions includes: 
#   Rounding functions        round, signif