Description Usage Arguments Details Value See Also Examples
Import Tidy Excel Sheets into R
1 2 | tidy_excel(file, flatten = FALSE, col_names, col_types, na, trim_ws,
skip, ...)
|
file |
.xls or .xlsx file |
flatten |
should output be displayed in tidy format for |
col_names |
|
col_types |
Default as |
na |
Character vector of strings to interpret as missing values. By default, readxl treats blank cells as missing data |
trim_ws |
Should leading and trailing whitespace be trimmed? |
skip |
Minimum number of rows to skip before reading anything, be it column names or data. Leading empty rows are automatically skipped, so this is a lower bound. Ignored if range is given. |
... |
other arguments to pass down to |
This function wraps the steps for importing excel files having more
than 1 sheet through mutate()
a sheetName column after
intermediate iterations of sheet names via map()
. For excel files
that have a single sheet, they are dealt by readxl()
with default
arguments. sheetName column will therefore be omitted.
A tibble
read_excel
1 2 | library(readxl)
tidy_excel(readxl_example("type-me.xlsx"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.