Learn R Programming

XLConnect (version 1.1.0)

xlcEdit: Editing data sets in an Excel file editor

Description

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.

Usage

xlcEdit(obj, pos = globalenv(), ext = ".xlsx")

Value

Invisibly returns the value of the xlcRestore operation.

Arguments

obj

Object (data.frame) to edit.

pos

Where to look for the object specified by obj. See pos argument of get for more information.

ext

Extension to use for the Excel file being created. Defaults to ".xlsx".

Author

Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch

Details

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.

See Also

xlcDump, xlcRestore, writeNamedRegion, writeWorksheet, writeNamedRegionToFile, writeWorksheetToFile

Examples

Run this code
if (FALSE) {
myObj = mtcars
xlcEdit(myObj)
}

Run the code above in your browser using DataLab