Renames a worksheet from a
1 2 3 4
The name or index of the sheet to rename
The new name of the sheet
Note that renaming worksheets may result in invalid name references.
Mirai Solutions GmbH http://www.mirai-solutions.com
1 2 3 4 5 6 7 8
# mtcars xlsx file from demoFiles subfolder of package XLConnect mtcarsFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect") # Load workbook wb <- loadWorkbook(mtcarsFile) # Rename the worksheet called 'mtcars' from the above file to 'MyCars' renameSheet(wb, sheet = "mtcars", newName = "MyCars")
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.