I am trying to calculate group means from a 4-way mixed ANOVA. The code is working great -- and I can output the results into my console -- but how do I save this table to a file (i.e. export as a .csv)? I tried using the capture.output()
command, but then it cannot find the object score.
##Group Means
data %>%
group_by(region, task, production, position) %>%
get_summary_stats(score, type = "mean_sd")