Reads Excel files delivered to SHARK in a standardized format.
The function automatically detects whether the file is .xls or .xlsx
and reads the specified sheet, skipping a configurable number of rows.
Column types are automatically converted, and if a column "SDATE" exists,
it is converted to Date.
Arguments
- filename
Path to the Excel file to be read.
- skip
Minimum number of rows to skip before reading anything (column names or data). Leading empty rows are automatically skipped, so this is a lower bound. Ignored if
sheetorrangespecifies a starting row. Default is 2.- sheet
Sheet to read. Either a string (sheet name) or integer (sheet index). If neither is specified, defaults to the second sheet.
Value
A data frame containing the parsed contents of the Excel file, or NULL if the file
does not exist, is empty, or cannot be read.
See also
read_shark() for reading SHARK tab- or semicolon-delimited export files or zip-archives.
