Takes a workbook object, a dataframe, the name of a worksheet, whether or not the sheet is to have a header, and whether or not the sheet is to be created if it does not exists, and either creates a worksheet or does based on the values of the arguments and whether or not the sheet already exists.
1 | create_sheet_if_needed(wb, m_df, sheet, header, create)
|
wb |
workbook object |
m_df |
dataframe to receive formatted worksheet |
sheet |
character vector with name of worksheet |
header |
logical vector of length one having TRUE if a header is to be created in the worksheet. |
create |
logical vector of length 1 that is TRUE if a worksheet is to be created if not present. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.