tidystats
tidystats copied to clipboard
Add print method for results data, LaTeX format
We could add a print method for the results
returned by add_stats()
. This print method (which could be an S3method
for R base's print
, or otherwise just a simple function in tidystats, such as tidy_print()
) would print to the console all data just the same way as it's inserted in the Word/GDocs editors. This would help check in advance what we can expect in the editors, and in some cases it might also just be a quick way to copy-paste the output into the editors.
Relatedly, there could be an option to print it in a LaTeX format. I could not find any add-in option in Overleaf, so this could be the alternative solution. It'd be far more simplistic than the add-ins, but could be still useful, and seems easy to implement. It could either work via the plain print
/tidy_print
as an option, e.g. as print(x, LaTeX = TRUE)
, or have its dedicated function itself. At any rate, both would work via a common internal function, as the basic structure can probably be very similar (e.g., what symbol/number to print at which placement, what to format in italics, etc.).