create_sheet_if_needed: Creates an Excel worksheet if it is needed.

Description Usage Arguments

View source: R/excelutilsr.R

Description

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.

Usage

1
create_sheet_if_needed(wb, m_df, sheet, header, create)

Arguments

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.


rmsharp/excelutilsr documentation built on May 27, 2019, 9:33 a.m.