Hi all,
I created two tables with the gt package and was very pleased with the look of the tables - and the learning process. My manuscript was accepted and now I received a notice that the tables need to be in editable format, like a Word table.
Is that a way for me to save the table in a text format rather than copy-pasting in to Word?
The pandoc program can convert HTML to all but the most obscure editable formats. It’s buried somewhere with RStudio or you can download a CLI standalone at its website or cut and paste the HTML to their online converter.
To convert your tables created with the gt package into an editable format like a Word table, you have a couple of options. One approach is to export the tables as CSV files, which can be opened and edited in spreadsheet software like Microsoft Excel. Once opened in Excel, you can copy and paste the table into a Word document as a native Word table. Another option is to directly export the tables to Excel using the gt package's write_xlsx() or write_csv() functions. Thanks