-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Component: RStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement
Description
ARROW-14071 and ARROW-16444 cover evaluating user-defined functions in different ways, but could we extend this behaviour so it be possible to evaluate generics? Here's an example of how that works in dplyr from a Stack Overflow question:
library(dplyr)
df <- data.frame(a = c("these", "are", "some", "strings"),
b = 1:4)
boop <- function(x, ...) UseMethod("boop", x)
boop.numeric <- function(x) mean(x, na.rm = TRUE)
boop.character <- function(x) mean(nchar(x), na.rm =TRUE )
df %>% summarise(across(everything(), boop))Reporter: Nicola Crane / @thisisnic
Related issues:
- [R] Try to arrow_eval user-defined functions (relates to)
Note: This issue was originally created as ARROW-17948. Please see the migration documentation for further details.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: RStatus: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwiseIssues and PRs flagged as stale which are due to be closed if no indication otherwiseType: enhancement