New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function to read all sheets into a list #407
Comments
I find it pretty simple to combine path <- readxl_example("datasets.xlsx")
path %>%
excel_sheets() %>%
set_names() %>%
map(read_excel, path = path) Using path <- readxl_example("deaths.xlsx")
deaths <- path %>%
excel_sheets() %>%
set_names() %>%
map_df(~ read_excel(path = path, sheet = .x, range = "A5:F15"), .id = "sheet") Did you know about |
Adding a link to the vignette @cderv refers to: http://readxl.tidyverse.org/articles/articles/readxl-workflows.html I absolutely see the utility of this but am on the fence re: a built-in function for it. Which is why I wrote the vignette. Obviously if this was typical use for most users, it's a no brainer to bring it into readxl. As a user, I have the occasional spreadsheet that I treat this way, but it's the exception rather than the rule. Worth discussing, though. |
I still think this is a matter to handle via documentation (and this exists in our current documentation). It doesn't require too much code to do this in a base R or tidyverse style. |
Suggestion: add a function to read all available sheets into a list. Simple version below:
Pros:
Cons:
The text was updated successfully, but these errors were encountered: