skewness: Skewness

Description Usage Arguments References Examples

View source: R/kurtosis.R

Description

Calculates skewness coefficient for given variable (see is.variable), matrix or a data.frame.

Usage

1
skewness(x, na.rm = TRUE)

Arguments

x

a variable, matrix or a data.frame

na.rm

should NAs be removed before computation?

References

Tenjovic, L. (2000). Statistika u psihologiji - prirucnik. Centar za primenjenu psihologiju.

Examples

1
2
3
4
5
6
set.seed(0)
x <- rnorm(100)
skewness(x)
skewness(matrix(x, 10))
skewness(mtcars)
rm(x)

Example output

Loading required package: reshape
sh: 1: cannot create /dev/null: Permission denied

Attaching package: 'rapportools'

The following objects are masked from 'package:stats':

    IQR, median, sd, var

The following objects are masked from 'package:base':

    max, mean, min, range, sum

[1] 0.2239736
 [1]  0.076946339  0.250421427 -0.410587977  0.358753197  0.273519060
 [6]  0.355183937 -0.756708701 -0.189366587  0.035736141  0.004586614
       mpg        cyl       disp         hp       drat         wt       qsec 
 0.6106550 -0.1746119  0.3816570  0.7260237  0.2659039  0.4231465  0.3690453 
        vs         am       gear       carb 
 0.2402577  0.3640159  0.5288545  1.0508738 

rapportools documentation built on May 29, 2017, 11:01 a.m.