Skip to content

Commit

Permalink
Fix map superseded (#754)
Browse files Browse the repository at this point in the history
* Updating superceded map_df() to map() %>% list_rbind(). Fixes #746.

* Update readxl-workflows.Rmd

* updating .id argument to go away in favor of names_to in the list_rbind(). Fixes #746.

---------

Co-authored-by: Lionel Henry <[email protected]>
  • Loading branch information
SokolovAnatoliy and lionel- authored Aug 15, 2024
1 parent f3eb9e5 commit 22ded0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/articles/readxl-workflows.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ ranges <- list("A5:F15", cell_rows(5:15))
deaths <- map2(
sheets,
ranges,
~ read_excel(path, sheet = .x, range = .y),
.id = "sheet"
~ read_excel(path, sheet = .x, range = .y)
) %>%
list_rbind() %>%
list_rbind(names_to = "sheet") %>%
write_csv("deaths.csv")
print(deaths, n = Inf)
```
Expand Down

0 comments on commit 22ded0b

Please sign in to comment.