ds.skewness: Calculation of Skewness

Description Usage Arguments Details Author(s) See Also Examples

View source: R/ds.skewness.R

Description

This function calculates skewness of the input vector, matrix or data frame.

Usage

1
ds.skewness(x, tojson = FALSE)

Arguments

x

A numeric vector, matrix or data frame.

tojson

If TRUE the results are returned in json format

Details

This function returns the skewness, also known as Pearson's moment coefficient of skewness, of numbers of the input data.

Author(s)

Aikaterini Chatzopoulou

See Also

ds.kurtosis, ds.statistics, ds.analysis, open_spending.ds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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.skewness(Matrix, tojson = FALSE)

# with iris data frame as an input
ds.skewness(iris, tojson = FALSE)

# with a vector as an input and json output
vec <- as.vector(iris$Sepal.Width)
ds.skewness(vec, tojson = TRUE)

# OpenBudgets.eu Dataset Example:
ds.skewness(Wuppertal_df, tojson = FALSE)

okgreece/DescriptiveStats.OBeu documentation built on Sept. 7, 2021, 6:32 p.m.