SaveMy_table | R Documentation |
This function creates a styled table from a given dataframe and either displays it or saves it as an image.
SaveMy_table(df, file_name, save = TRUE)
df |
A dataframe to be formatted into a table. |
file_name |
A string specifying the name of the file if saving the table. |
save |
A logical value indicating whether to save the table ('TRUE') or just display it ('FALSE'). Default is 'TRUE'. |
If 'save = FALSE', the table is printed in the console. If 'save = TRUE', it is saved to the specified file.
SaveMy_table(mtcars, "table.png", save = TRUE)
SaveMy_table(iris, "table.html", save = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.