xlcEdit | R Documentation |
Provides the capability to edit an object/data.frame in an Excel file editor. After editing, the object is restored in the R session with the corresponding changes.
xlcEdit(obj, pos = globalenv(), ext = ".xlsx")
obj |
Object ( |
pos |
Where to look for the object specified by |
ext |
Extension to use for the Excel file being created. Defaults to ".xlsx". |
This function uses xlcDump
and xlcRestore
to
dump objects to and restore objects from Excel files. An OS command is invoked
to open the temporary Excel file in the default editor. Changes to the file have
to be saved in order for them to take effect in the restored object.
Invisibly returns the value of the xlcRestore
operation.
This function only works under Windows and MacOS with a corresponding Excel file editor, e.g. MS Excel or LibreOffice. Attempts to use this function under another OS will result in an error being thrown.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
xlcDump
, xlcRestore
,
writeNamedRegion
,
writeWorksheet
, writeNamedRegionToFile
,
writeWorksheetToFile
## Not run:
myObj = mtcars
xlcEdit(myObj)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.