I have an existing tinytable "object" (R labels it "Formal class tinytable", call it "VIEWTotal") obtained after a custom function. Screenshot R View of VIEWTotal tinytable object The available posts I have been able to find, including the documentation, all show applying tinytable(), save_tt(), etc. to the dataframe rather than the S4 object. I cannot apply tinytable directly to the dataframe and get the result. Documentation states that the transition to Word requires two steps: (1) generate markdown table, (2) use Pandoc software to convert markdown to Word. I haven't been able to get Step (1), much less Step (2).
I'd appreciate any suggestions. (I am not a complete newbie, but not advanced R user either.)
Similar post: Use kableExtra to manipulate and save tex file after modelsummary
I have an existing tinytable "object" (R labels it "Formal class tinytable", call it "VIEWTotal") obtained after a custom function. Screenshot R View of VIEWTotal tinytable object The available posts I have been able to find, including the documentation, all show applying tinytable(), save_tt(), etc. to the dataframe rather than the S4 object. I cannot apply tinytable directly to the dataframe and get the result. Documentation states that the transition to Word requires two steps: (1) generate markdown table, (2) use Pandoc software to convert markdown to Word. I haven't been able to get Step (1), much less Step (2).
I'd appreciate any suggestions. (I am not a complete newbie, but not advanced R user either.)
Similar post: Use kableExtra to manipulate and save tex file after modelsummary
All you need to do is call:
library(tinytable)
save_tt(existing_tinytable_object, "path/to/file.docx")