View source: R/read_excel_all_sheets.R
read_excel_all_sheets | R Documentation |
Given an excel file with muliple sheets, the function will iterate over each sheet and save them all to a list or to individual data frames.
read_excel_all_sheets(path_to_excel_file, as_list = TRUE)
path_to_excel_file |
File path to the Excel file with multiple sheets |
as_list |
Logical; if |
A list of data frames. Or a number of data frames.
## Not run:
library(readxl)
path <- readxl::readxl_example("datasets.xlsx")
#### As a list --------------------------------
list_of_sheets <- read_excel_all_sheets(path_to_excel_file = path,
as_list = TRUE)
list_of_sheets
#### As data frames --------------------------------
read_excel_all_sheets(path_to_excel_file = path,
as_list = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.