Description Usage Arguments Details Value Author(s)
Read data from an Excel file or Workbook object into a data.frame
1 2 3 4 |
xlsxFile |
An xlsx file, Workbook object or URL to xlsx file. |
sheet |
The name or index of the sheet to read data from. |
startRow |
first row to begin looking for data. Empty rows at the top of a file are always skipped, regardless of the value of startRow. |
colNames |
If |
rowNames |
If |
detectDates |
If |
skipEmptyRows |
If |
skipEmptyCols |
If |
rows |
A numeric vector specifying which rows in the Excel file to read. If NULL, all rows are read. |
cols |
A numeric vector specifying which columns in the Excel file to read. If NULL, all columns are read. |
check.names |
logical. If TRUE then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names |
namedRegion |
A named region in the Workbook. If not NULL startRow, rows and cols paramters are ignored. |
na.strings |
A character vector of strings which are to be interpreted as NA. Blank cells will be returned as NA. |
fillMergedCells |
If TRUE, the value in a merged cell is given to all cells within the merge. |
Formulae written using writeFormula to a Workbook object will not get picked up by read.xlsx(). This is because only the formula is written and left to be evaluated when the file is opened in Excel. Opening, saving and closing the file with Excel will resolve this.
data.frame
Philipp Schauberger
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.