I keep getting this error and I'm not quite sure what it means. All of my variable names are consistent and there are no typos. Am I missing something here?
The code
datNewagg <- aggregate (dataNew, by = list('x', 'y', 'z', 'a', 'ab'),
FUN = mean)
Produces the error
Error in aggregate.data.frame(datNew, by = list("x", "y", :
arguments must have same length