| xlcDump | R Documentation |
Dumps data sets to Excel files by writing each object to a separate worksheet.
xlcDump(list, ..., file = "dump.xlsx", pos = -1, overwrite = FALSE)
list |
|
... |
Arguments that will be passed to the |
file |
Excel file to which objects will be dumped. Can be an existing or a new file. Defaults to |
pos |
Environment in which to look for objects. Can be specified either as an |
overwrite |
|
Each object is written to a separate worksheet named by the name of the object. Objects are written using the
writeWorksheet method - as such any object will be coerced to data.frame.
Named logical vector specifying if objects have been dumped or not. An object may not be dumped because there
was an issue with the coercion to a data.frame or the object already existed (and overwrite = FALSE) in
the workbook.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
xlcRestore, writeNamedRegion,
writeWorksheet, writeNamedRegionToFile,
writeWorksheetToFile, xlcEdit
## Not run:
require(datasets)
xlcDump(c("airquality", "CO2", "iris", "PlantGrowth", "swiss"),
file = "myDump.xlsx", pos = "package:datasets")
xlcRestore(file = "myDump.xlsx", overwrite = TRUE)
# clean up
file.remove("myDump.xlsx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.