skew: Skewness

View source: R/skew.R

skewR Documentation

Skewness

Description

Computes the skewness statistic.

Usage

skew(x, na.rm = TRUE, method = "fisher")

Arguments

x

any numeric vector.

na.rm

logical; if TRUE, then remove missing value before computation.

method

the method to use for computing the skew, must be "fisher" or "moments."

Value

a single value representing the skewness of the data in x.

References

Helsel, D.R. and Hirsch, R.M., 2002, Statistical methods in water resources: U.S. Geological Survey Techniques of Water-Resources Investigations, book 4, chap. A3, 522 p.

Examples

skew(c(1.0, 1.2, 1.5, 1.9, 2.5))

USGS-R/smwrStats documentation built on Oct. 11, 2022, 6:15 a.m.