activeSheet | R Documentation |
Get and set active sheet of the workbook
activeSheet(wb)
activeSheet(wb) <- value
wb |
A workbook object |
value |
index of the active sheet or name of the active sheet |
return the active sheet of the workbook
Philipp Schauberger
wb <- createWorkbook()
addWorksheet(wb, sheetName = "S1")
addWorksheet(wb, sheetName = "S2")
addWorksheet(wb, sheetName = "S3")
activeSheet(wb) # default value is the first sheet active
activeSheet(wb) <- 1 ## active sheet S1
activeSheet(wb)
activeSheet(wb) <- "S2" ## active sheet S2
activeSheet(wb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.