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 >
Check class(dataNew). If it's not a data.frame, this dataNew <- data.frame(dataNew) before aggregation should solve the error or
class(dataNew)
dataNew <- data.frame(dataNew)
datNewagg <- aggregate (data.frame(dataNew), by = list('x', 'y', 'z', 'a', 'ab'), FUN = mean)