[ 
https://issues.apache.org/jira/browse/ARROW-17366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Crane updated ARROW-17366:
---------------------------------
        Parent: ARROW-17895
    Issue Type: Sub-task  (was: Bug)

> [R] Support purrr-style lambda functions in .fns argument to across()
> ---------------------------------------------------------------------
>
>                 Key: ARROW-17366
>                 URL: https://issues.apache.org/jira/browse/ARROW-17366
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: R
>            Reporter: Nicola Crane
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> ARROW-11699 adds support for dplyr::across inside a mutate(). The .fns 
> argument does not yet support purrr-style lambda functions (e.g. {{~round(.x, 
> digits = -1)}} but should be added. 
> We could also support anonymous functions, e.g. 
> {code:r}
> mtcars %>% 
>   dplyr::summarise(across(.cols = everything(),function(x){head(x,1)})) 
> {code}
> As well as this, we should check the new ways in which these functions can be 
> specified (n.b. using {{\x}}) as we might want to support both while the 
> older way isn't fully deprecated yet.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to