| getReferenceFormula-methods | R Documentation |
Queries the reference formula of an Excel named range in a workbook.
## S4 method for signature 'workbook'
getReferenceFormula(object,name, worksheetScope)
object |
The |
name |
The named range to query. This argument is vectorized such that multiple names can be queried with one method call. |
worksheetScope |
Optional - the name of the worksheet in which the name is scoped;
if undefined a matching name in any scope may be returned. To specify global scope only, use the value |
.
If option XLConnect.setCustomAttributes is TRUE (default FALSE),
the worksheet scope in which the queried name is defined is set as attribute worksheetScope on the result.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
workbook, createName, existsName,
removeName
## Not run:
# mtcars xlsx file from demoFiles subfolder of package XLConnect
demoExcelFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")
# Load workbook
wb <- loadWorkbook(demoExcelFile)
# Query reference formula for name 'mtcars'
print(getReferenceFormula(wb, name = "mtcars"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.