I calculate many statistical analyses, such as Anova. The summary tables, and the posthoc test results are displayed on the console in R studio. My problem is that how can I export/print results from the Console to tabular format (e.g. xls) into my working directory folder on my PC? On the console, all calculation data are displayed in tabular format(-like) arrangement.
I have tried the code:
str(theSCRIPTforMYRESULTSontheCONSOLE)
sink("theSCRIPTforMYRESULTSontheCONSOLE.xls")
print(theSCRIPTforMYRESULTSontheCONSOLE$"ANYpartINmyRESULTS")
sink()
which works , however, very accidentally...
May I define a dataframe first? And then export?