opts = spreadsheetImportOptions()
opts = spreadsheetImportOptions(Name, Value)
| Parameter | Description |
|---|---|
| Name, Value | name-value arguments such as 'NumVariables', 'VariableNames', 'VariableTypes', 'Sheet' or 'DataRange'. |
| Parameter | Description |
|---|---|
| opts | nelson.io.spreadsheet.SpreadsheetImportOptions object. |
spreadsheetImportOptions creates an import options object for spreadsheet (xlsx) files.
The object uses the Nelson class nelson.io.spreadsheet.SpreadsheetImportOptions and is consumed by readtable with the 'UseExcel' option set to false.
Use setvaropts to configure per-variable options such as the datetime 'InputFormat'.
opts = spreadsheetImportOptions('NumVariables', 3);
opts.VariableNames = ["name", "value", "date"];
opts.VariableTypes = ["string", "double", "datetime"]
| Version | Description |
|---|---|
| 2.0.0 | initial version |