Learn R Programming

s20x (version 3.1-40)

skewness: Skewness Statistic

Description

Calculates the skewness statistic of the data in 'x'. Values close to zero correspond to reasonably symmetric data, positive values of this measure indicate right-skewed data whereas negative values indicate left-skewness.

Usage

skewness(x, ...)

Value

Returns the value of the skewness.

Arguments

x

vector containing the data.

...

any other variables to be passed to mean and sd, e.g. na.rm = TRUE.

Examples

Run this code

##Merger data:
data(mergers.df)
skewness(mergers.df$mergerdays)

Run the code above in your browser using DataLab