readOpenxlsx | R Documentation |
Import one or more data.frame from Excel xlsx format
readOpenxlsx(
xlsx,
sheet = NULL,
startRow = 1,
startCol = 1,
rows = NULL,
cols = NULL,
check.names = FALSE,
check_header = FALSE,
check_header_n = 10,
verbose = FALSE,
...
)
xlsx |
|
sheet |
one of |
startRow |
|
startCol |
|
rows |
|
cols |
|
check.names |
|
check_header |
|
check_header_n |
|
verbose |
|
... |
additional arguments are passed to |
This function is equivalent to openxlsx::read.xlsx()
with a few minor additions:
It returns a list
of data.frame
objects, one per sheet
.
It properly reads the colnames
with check.names=FALSE
.
By default this function returns every sheet
for a given
xlsx
file.
Some useful details:
Empty columns are not skipped during loading, which means a worksheet whose data starts at column 3 will be returned with two empty columns, followed by data from that worksheet. Similarly, any empty columns in the middle of the data in that worksheet will be included in the output.
When both startRow
and rows
are applied, rows
takes priority
and will be used instead of startRows
. In fact startRows
will be
defined startRows <- min(rows)
for each relevant worksheet. However,
for each worksheet either argument can be NULL
.
Other jam export functions:
applyXlsxCategoricalFormat()
,
applyXlsxConditionalFormat()
,
set_xlsx_colwidths()
,
set_xlsx_rowheights()
,
writeOpenxlsx()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.