Description Usage Arguments Author(s) References Examples
Write a data.frame to an Excel workbook. This function is just a wrapper for the write.xlsx2 function from xlsx package.
1 2 |
data |
a data.frame to write to the workbook. |
file |
the path to the output file. |
sheetName |
a character string with the sheet name |
col.names |
a logical value indicating if the column names of the data are to be written to the file. |
row.names |
a logical value indicating if the row names of the data are to be written to the file. |
append |
a logical value indicating if x should be appended to an existing file. If TRUE the file is read from disk. |
... |
Other arguments to write.xlsx2 from xlsx package |
Alboukadel Kassambara <alboukadel.kassambara@gmail.com>
http://www.sthda.com
1 2 | xlsx.writeFile(USArrests, file="USArrests.xlsx", sheetName="USArrests")
xlsx.openFile("USArrests.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.