SaveMy_table: Generate and Save/Display a Styled Table

View source: R/Utils_df.R

SaveMy_tableR Documentation

Generate and Save/Display a Styled Table

Description

This function creates a styled table from a given dataframe and either displays it or saves it as an image.

Usage

SaveMy_table(df, file_name, save = TRUE)

Arguments

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'.

Value

If 'save = FALSE', the table is printed in the console. If 'save = TRUE', it is saved to the specified file.

Examples

SaveMy_table(mtcars, "table.png", save = TRUE)
SaveMy_table(iris, "table.html", save = FALSE)

eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.