度数分布を表示する関数
> table(iris$length)
4.3 4.4 4.5 4.6 4.7 4.8 4.9
1 3 1 4 2 5 6
irisデータのlengthの度数分布
>table(iris[1])
でもいける(lengthが一列目)
> xtabs(Freq~Inocome,data=dataBox)
Income
0-50 50-100 100-150 >150
566 1476 854 2248
dataBoxデータの
Freqの値をIncomeのカテゴリカル変数別度数分布