purrr icon indicating copy to clipboard operation
purrr copied to clipboard

A functional programming toolkit for R

Results 146 purrr issues
Sort by recently updated
recently updated
newest added

The example code included in the roxygen2 notes from splice throws an error when this example code is ran. Please refer to ?purrr::splice() ```r inputs % str() list(inputs, arg3 =...

Hi! I've just discovered the `discard()` function and I'm so thrilled: I do this sort of thing all the time and had to keep on coding this logic up manually....

I have a tibble including list columns, and would have expected pmap to iterate over it row-wise like it would over any dataframe. Instead, it somewhat unnests the rows (retaining...

Would be nice to have support for progress bars in all map functions. This is a nice feature of plyr. Could use https://github.com/gaborcsardi/progress, although we might need to ask @gaborcsardi...

feature

It seems to me that `chuck()` should be the opposite of `pluck()`, rather than a strict form of `pluck()`. Pluck means to take hold of (something) and quickly remove it...

documentation

Is this difference intended to be this way? ``` r # list of lists l $a$n1 #> [1] "Keep this" #> #> #> $b #> $b$n1 #> [1] "Keep this"...

It seems that pmap doesn't work when the first column of a tibble is a date column. The issue vanishes if the columns are rearranged. I came across this issue...

Fixes typo referring to the value 15: ``` 1:5 %>% accumulate(`+`) #> [1] 1 3 6 10 15 1:5 %>% accumulate(`+`, .dir = "backward") #> [1] 15 14 12 9...

```r library(magrittr) set.seed(42) df1 % purrr::map(~ .x %>% dplyr::select("a")) df_list %>% purrr::map(\(x) x %>% dplyr::select("a")) df_list %>% purrr::map(function(x) x %>% dplyr::select("a")) ``` My guess is the `.` usage interferes with...