View source: R/extract_df_from_list.R
extract_df_from_list | R Documentation |
The function will take a list of data frames in the environment and extract each data frame and assign the name from the list.
extract_df_from_list(list_of_dfs, envir = .GlobalEnv)
list_of_dfs |
A list with data frames |
envir |
Environment to assign data frames to. Default is |
Data frames; the same number as were contained in the list. Returned to the global environment.
library(readxl)
path <- readxl::readxl_example("datasets.xlsx")
list_of_sheets <- lamisc::read_excel_all_sheets(path_to_excel_file = path,
as_list = TRUE)
extract_df_from_list(list_of_sheets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.