You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2022/10/04 18:54:00 UTC

[jira] [Updated] (ARROW-17366) [R] Support purrr-style lambda functions in .fns argument to across()

     [ 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. 

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. 

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.


> [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
>            Assignee: Nicola Crane
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  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. 
> 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)