I need to summarize some data and I'm using the function ddply
from plyr
package. The dataset has 68 variables and I'm trying to take the mean of all variables, grouped by other two.
I'm trying to use the following code but it isn't working.
ddply(data, c("Var1", "Var2"), summarise, mean = mean(data$Var3 ~ data$Var68))
It shows me this message:
There were 50 or more warnings (use warnings() to see the first 50)
What is the problem in that?
P.S.: Var1 is a factor
with 6 levels
, Var2 is an int
. All other variables are num
.