我试图以其总行值的百分比显示每个值。
ClientFeedbackQuant <- cut(MR_Data$ClientFeedbackScore, quantile(MR_Data$ClientFeedbackScore, c(0,.20,.4,.6,.8,1)) ,include.lowest = TRUE)
table1 <- table(MR_Data$Division , ClientFeedbackQuant)
table1[11,72] (72,84.2] (84.2,91] (91,97] (97,100] Atlanta 44 9 2 1 0 Denver 22 56 24 20 9 Mobile 61 36 31 14 38 Portland 0 20 75 82 75
发布于 2019-09-11 16:11:48
一种选择是prop.table
prop.table(table1, 1)https://stackoverflow.com/questions/57893085
复制相似问题