View source: R/summarise_kurtosis.R
summarise_kurtosis | R Documentation |
Calculates the kurtosis (default: **excess kurtosis**) of numeric vectors, matrices, data frames, or tibbles. Supports both the "standard" and "unbiased" methods and optionally returns **raw kurtosis**.
summarise_kurtosis(x, method = c("standard", "unbiased"), excess = TRUE)
x |
A numeric vector, matrix, data frame, or tibble. |
method |
Character. Method for kurtosis calculation: '"standard"' (default) or '"unbiased"'. |
excess |
Logical. If TRUE (default), returns **excess kurtosis** (minus 3); if FALSE, returns **raw kurtosis**. |
A tibble: - If input has one numeric column (or is a vector), a single-row tibble. - If input has multiple numeric columns, a tibble with variable names and kurtosis values.
summarise_kurtosis(iris)
summarise_kurtosis(iris, method = "unbiased")
summarise_kurtosis(iris, excess = FALSE) # Raw kurtosis
summarise_kurtosis(iris$Sepal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.