Description Usage Arguments Details Examples
Calculates the skewness of each field in a data.table
1 |
dt |
A data.table |
Counts the frequency of each value in each column, then displays the results in descending order
1 2 | library(data.table)
skewness(alien.train)
|
$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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.