r markdown - Pushing existing tinytable object directly to Word? - Stack Overflow

I have an existing tinytable "object" (R labels it "Formal class tinytable", call i

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

Share Improve this question asked Mar 6 at 0:50 Va Nee L. Van VleckVa Nee L. Van Vleck 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

All you need to do is call:

library(tinytable)
save_tt(existing_tinytable_object, "path/to/file.docx")

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745000956a4605488.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信