0

http://www.cookbook-r.com/Manipulating_data/Summarizing_data/中所述,我对summarySE有疑问

当我在 R Studio 中设置它时,我收到一条错误消息。

> datac <- ddply(data, groupvars,
+ .fun= function(xx, col, na.rm) {
+ c( N= length2(xx[,col], na.rm=na.rm),
+ mean = mean   (xx[,col], na.rm=na.rm),
+ sd   = sd     (xx[,col], na.rm=na.rm)
+ )
+ },
+ measurevar,
+ na.rm
+ )

Error in if (empty(.data)) return(.data) : 
  missing value where TRUE/FALSE needed

这是什么意思,我该怎么办?谢谢

4

0 回答 0