Skip to content
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

Updating use of superceded map_df to map %>% list_rbind #753

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

SokolovAnatoliy
Copy link
Contributor

Fixes #746

@lionel-
Copy link
Member

lionel- commented Aug 15, 2024

Looks good! I've just updated the .id argument of map_df() which is now list_rbind(names_to = ).

@lionel- lionel- merged commit f3eb9e5 into tidyverse:main Aug 15, 2024
11 checks passed
@@ -171,12 +172,13 @@ sheets <- path %>%
excel_sheets() %>%
set_names()
ranges <- list("A5:F15", cell_rows(5:15))
deaths <- map2_df(
deaths <- map2(
sheets,
ranges,
~ read_excel(path, sheet = .x, range = .y),
.id = "sheet"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just catching up, but should this .id go away in favor of names_to in the list_rbind() call @SokolovAnatoliy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extremely minor -- purrr::map_df used in the readxl-workflows.Rmd is superseded
3 participants