我正在使用ctab()
包中的catspec
来生成一个三向表。但是有什么方法可以格式化输出乳胶就绪?这似乎是一件非常简单的事情:
library(catspec)
ctab(Titanic)
Survived No Yes
Class Sex Age
1st Male Child 0 5
Adult 118 57
Female Child 0 1
Adult 4 140
2nd Male Child 0 11
Adult 154 14
Female Child 0 13
Adult 13 80
3rd Male Child 35 13
Adult 387 75
Female Child 17 14
Adult 89 76
Crew Male Child 0 0
Adult 670 192
Female Child 0 0
Adult 3 20
但是然后呢?