Learn R Programming

MSMU (version 0.1.2)

skew: Compute Sample Skewness

Description

Calculates the skewness of a numeric vector. A positive value indicates right skew (long right tail), while a negative value indicates left skew (long left tail). A zero value represents symmetry

Usage

skew(x)

Value

A single numeric value representing the skewness of the distribution.

Arguments

x

A numeric vector.

Examples

Run this code
# Skew of Sepal Lengths in iris
data("iris")
skew(iris$Sepal.Length)


Run the code above in your browser using DataLab