View source: R/utilities-data-importer-configuration.R
createImporterConfigurationForFile | R Documentation |
DataImporterConfiguration
for an XLS sheetCreate a DataImporterConfiguration
for an XLS sheet
createImporterConfigurationForFile(filePath, sheet = NULL)
filePath |
Path to XLS file |
sheet |
optional - name of the sheet. If no sheet is specified, the first sheet of the XLS file is used. |
The function tries to parse the structure of the excel sheet and
creates a default configuration for this sheet. It is advised to check the
configuration and adjust if necessary before using with loadDataSetsFromExcel()
.
DataImporterConfiguration
object for XLS file to be used in
loadDataSetsFromExcel()
.
xlsFilePath <- system.file("extdata", "CompiledDataSet.xlsx", package = "ospsuite")
importerConfiguration <- createImporterConfigurationForFile(xlsFilePath)
importerConfiguration$sheets <- "TestSheet_1"
dataSets <- loadDataSetsFromExcel(
xlsFilePath = xlsFilePath,
importerConfigurationOrPath = importerConfiguration,
importAllSheets = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.