Generic function for computation of kurtosis. The methods defined in package timeDate are described here.
kurtosis(x, ...) ## Default S3 method: kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...) ## S3 method for class 'data.frame' kurtosis(x, na.rm = FALSE, method = c("excess", "moment", "fisher"), ...) ## S3 method for class 'POSIXct' kurtosis(x, ...) ## S3 method for class 'POSIXlt' kurtosis(x, ...)
a logical. Should missing values be removed?
a character string which specifies the method of computation.
These are either
a numeric vector or object.
arguments to be passed.
kurtosis is an S3 generic function. This page describes the
methods defined in package
x is numeric the kurtosis is computed according to the
description given for argument
method. A logical vector is
treated as a vector of 1's and 0's.
data.frame method applies
kurtosis recursively to
each column. The
POSIXlt method computes the kurtosis of the
underlying numerical representation of the date/times. The method for
POSIXct does the same after converting the argument to
The default method returns
NA, with a warning, if it can't
a numeric value or vector with attribute
## mean - ## var - # Mean, Variance: r = rnorm(100) mean(r) var(r) ## kurtosis - kurtosis(r) kurtosis(data.frame(r = r, r2 = r^2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.