aggregate(mpg ~ cyl, FUN = mean, na.rm = TRUE, data = mtcars)
umx_aggregate(mpg ~ cyl, data = mtcars)
umx_aggregate(cbind(mpg, qsec) ~ cyl, data = mtcars)
t(umx_aggregate(cbind(mpg, qsec) ~ cyl, data = mtcars))
## Not run:
# umx_aggregate(cbind(moodAvg, mood) ~ condition, data = study1)
# ## End(Not run)
Run the code above in your browser using DataLab