excelDoc | R Documentation |
These functions create objects representing
different elements of an Excel file.
excelDoc
refers to the top-level xslx file.
workbook
returns the identifier for the workbook.
getSheet
yields a Worksheet
object
which has both the XML contentand the identifier for the corresponding
file within the xlsx archive.
excelDoc(f, create = FALSE,
template = system.file("templateDocs", "Empty.xlsx",
package = "RExcelXML"),
class = "ExcelArchive")
getSheet(doc, which, asXML = TRUE)
f |
the name of the xlsx file |
create |
a logical value that is used if the specified file
|
template |
the name of a file to copy if we are creating a new spreadsheet. |
class |
the class of the object to be returned. This allows the caller to create an object of a derived/sub-class |
doc |
the workbook archive |
which |
a number or a string identifying the sheet within the workbook/xlsx file |
asXML |
a logical value. If this is |
Duncan Temple Lang
f = system.file("SampleDocs", "Workbook1.xlsx", package = "RExcelXML")
e = excelDoc(f)
names(e)
w = workbook(e)
names(w)
w[[1]]
f = system.file("SampleDocs", "pics.xlsx", package = "RExcelXML")
e = excelDoc(f)
getImages(e)
f = system.file("SampleDocs", "Images.xlsx", package = "ROOXML")
e = excelDoc(f)
getImages(e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.