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 >
Using data.frame as by argument works for me try this:
data.frame
by
datNewagg <- aggregate (dataNew, by = dataNew[c('x', 'y', 'z', 'a', 'ab')], FUN = mean)
I mean don't give the by argument, just the name of the arguments, give a data.frame with columns as these arguments