Math(x) # replace Math with any function in this group. Math2(x, digits) # replace Math2 ...
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)
.
Math
group:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
.
Math2
group:
,
.
# 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