import_excel | R Documentation |
This function imports an Excel file with multiple sheets and returns
a named list
of imported sheets.
import_excel(file_path)
file_path |
A character string specifying the path to the Excel file. |
A named list where each element is the imported sheet from the Excel file, with names corresponding to the sheet names.
## For demo, a temp. file path is created with the file extension .xlsx
excel_file <- tempfile(fileext = ".xlsx")
## create Excel file with multiple sheets to import
writexl::write_xlsx(list(cars = head(cars), mtcars = head(mtcars)),
excel_file)
import_excel(file_path = excel_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.