Description Usage Arguments Details Value
Save the data to Excel file which is generated by zslTwoDayDiff and
other functions giving the comparison result.
1 2 3 | zslSaveToExcel(data, output.file = "zsl.xlsx", assign = FALSE)
zslSaveToExcelP(data, wb, output.file = "zsl.xlsx")
|
data |
the data to be saved to Excel file. |
output.file |
the file path of the ouput, if missed, it is set to "zsl.xlsx" in the working directory. |
assign |
logical, default is FALSE, if TRUE, the workbook object
generated by |
wb |
the |
For the convenience of viewing the result, the function changed somewhere to Chinese, including the "mark" column and the column names.
The funcion uses XLConnect package to manipulate the Excel file. For
the format, the style action is set to "NAME_PREFIX" and the style is already
adjusted well in the "template.xlsx".
Besides, using param assign can assign the workbook object to the
Global environment. This is uesful for generating multiple sheets Excel file.
The function zslSaveToExcelP saves the data returned by
zslPeriodDiff.
No obvious return, the data will be saved to Excel file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.