Description Usage Arguments Details Author(s) See Also Examples
This function calculates kurtosis of the input vector, matrix or data frame.
1 | ds.kurtosis(x, tojson = FALSE)
|
x |
A numeric vector, matrix or data frame. |
tojson |
If TRUE the results are returned in json format |
This function returns the kurtosis, based on a scaled version of the fourth moment, of numbers of the input data.
Aikaterini Chatzopoulou, Charalampos Bratsas
ds.skewness
, ds.statistics
,
ds.analysis
, open_spending.ds
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # with a matrix as an input
Matrix <- cbind(Uni05 = (1:200)/21, Norm = rnorm(200),
`5T` = rt(200, df = 5), Gam2 = rgamma(200, shape = 2))
ds.kurtosis(Matrix, tojson = FALSE)
# with iris data frame as an input
ds.kurtosis(iris, tojson = FALSE)
# with a vector as an input and json output
vec <- as.vector(iris$Sepal.Width)
ds.kurtosis(vec, tojson = TRUE)
# OpenBudgets.eu Dataset Example:
ds.kurtosis(Wuppertal_df, tojson = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.