[ https://issues.apache.org/jira/browse/ARROW-17366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicola Crane updated ARROW-17366: --------------------------------- Description: 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. was: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. > [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 > Fix For: 10.0.0 > > > 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)