skewness: Skewness

Description Usage Arguments Details Examples

Description

Calculates the skewness of each field in a data.table

Usage

1

Arguments

dt

A data.table

Details

Counts the frequency of each value in each column, then displays the results in descending order

Examples

1
2

Example output

$SkinColor
   SkinColor Count  Pcnt
1:     white     4 0.500
2:     green     2 0.250
3:     brown     1 0.125
4:      blue     1 0.125

$IQScore
   IQScore Count  Pcnt
1:     115     2 0.250
2:     300     1 0.125
3:      95     1 0.125
4:     105     1 0.125
5:     250     1 0.125
6:      85     1 0.125
7:     130     1 0.125

$Cat1
    Cat1 Count Pcnt
1: type1     4 0.50
2: type2     2 0.25
3: type4     2 0.25

$Cat2
    Cat2 Count  Pcnt
1: type1     2 0.250
2: type2     2 0.250
3: type5     2 0.250
4: type6     1 0.125
5: type7     1 0.125

$Cat3
     Cat3 Count Pcnt
1:  type4     4 0.50
2: type11     2 0.25
3:  type2     2 0.25

$IsAlien
   IsAlien Count Pcnt
1:    TRUE     4  0.5
2:   FALSE     4  0.5

mltools documentation built on May 2, 2019, 5:22 a.m.