I am trying to output some anova results from R into a textfile using the sink() command, but I am getting some weird symbols. This is the code:
sink(file)
print(title)
print("SUMMARY STATISTICS")
print("")
print("Summary grouped by factor ' roi'")
data %>%
group_by(roi) %>%
get_summary_stats(value, type = "mean_sd") #value cannot be a factor
print("")
print("Summary grouped by factor 'mA'")
data %>%
group_by(mA) %>%
get_summary_stats(value, type = "mean_sd") #value cannot be a factor
print("")
print("Summary grouped by both factors")
data%>%
group_by(roi,mA) %>%
get_summary_stats(value, show = c("mean", "sd", "se", "median"))
sink()
... and this the result :(
Software details: R studio is Version 1.4.1717 R Version 1.4.1717 OS: Ubuntu 18.04.5 LTS