Learn R Programming

dad (version 4.1.6)

skewness.folder: Skewness coefficients of a folder of data sets

Description

Computes the skewness coefficient by column of the elements of an object of class folder.

Usage

skewness.folder(x, na.rm = FALSE, type = 3)

Value

A list whose elements are the skewness coefficients by column of the elements of the folder.

Arguments

x

an object of class folder that is a list of data frames with the same column names.

na.rm

logical. Should missing values be omitted from the calculations? (see skewness)

type

an integer between 1 and 3 (see skewness).

Author

Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard

Details

It uses skewness to compute the mean by numeric column of each element of the folder. If some columns of the data frames are not numeric, there is a warning, and the means are computed on the numeric columns only.

See Also

folder to create an object is of class folder. mean.folder, var.folder, cor.folder, kurtosis.folder for other statistics for folder objects.

Examples

Run this code
# First example: iris (Fisher)               
data(iris)
iris.fold <- as.folder(iris, "Species")
iris.skewness <- skewness.folder(iris.fold)
print(iris.skewness)

# Second example: roses
data(roses)
roses.fold <- as.folder(roses, "rose")
roses.skewness <- skewness.folder(roses.fold)
print(roses.skewness)

Run the code above in your browser using DataLab