Usage
MAD(x, ..., data, groups = NULL, ..fun.. = MAD_,
na.rm = getOption("na.rm", FALSE))SAD(x, ..., data, groups = NULL, ..fun.. = SAD_,
na.rm = getOption("na.rm", FALSE))
Arguments
x
a numeric vector or a formula.
...
additional arguments passed through to MAD_
or SAD_
. If x
is a formala, ...
should
include an argument named data
if the intent is to
interpret the formala in a data frame.
data
a data frame in which to evaluate formulas (or bare names).
Note that the default is data=parent.frame()
. This makes it convenient to
use this function interactively by treating the working envionment as if it were
a data frame. But this ma
groups
a grouping variable, typically a name of a variable in data
..fun..
the underlying function used in the computation
na.rm
a logical indicating whether NAs should be removed before
calculaing.