我在对数据进行分组描述性统计时出现错误。
返回错误:
Result type for group 1 (grade = G7): <double>.
ℹ Result type for group 4 (grade = G10): <labelled>
这是操作的代码
gradesummarise <- summarise(group_by(socialphobia, grade),
min(NNNSASAtotal),
max(NNNSASAtotal),
mean(NNNSASAtotal),
sd(NNNSASAtotal),
median(NNNSASAtotal),
quantile(NNNSASAtotal, 0.25),
quantile(NNNSASAtotal, 0.75),)
在网上搜索说需要更新dplyr包到最新
packageVersion("dplyr")
[1] ‘1.0.8’