Usage
numSummary(data,
statistics=c("mean", "sd", "quantiles", "cv", "skewness", "kurtosis"),
type=c("1", "2", "3"),
quantiles=c(0, .25, .5, .75, 1), groups)
## S3 method for class 'numSummary':
print(x, ...)
Arguments
data
a numeric vector, matrix, or data frame.
statistics
any of "mean"
, "sd"
, "quantiles"
,
"cv"
(coefficient of variation --- sd/mean), "skewness"
, or "kurtosis"
,
defaulting to the first three.
type
definition to use in computing skewness and kurtosis; see the
link[e1071]{skewness}
and link[e1071]{kurtosis}
functions in the e1071
package. The default is "1"
. quantiles
quantiles to report; default is c(0, 0.25, 0.5, 0.75, 1)
.
groups
optional variable, typically a factor, to be used to partition the data.
x
object of class "numSummary"
to print.
...
arguments to pass down from the print method.