You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jonathan Keane (Jira)" <ji...@apache.org> on 2021/12/16 17:53:00 UTC
[jira] [Updated] (ARROW-12711) [R] Bindings for paste(collapse), str_c(collapse), and str_flatten()
[ https://issues.apache.org/jira/browse/ARROW-12711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Keane updated ARROW-12711:
-----------------------------------
Fix Version/s: 8.0.0
(was: 7.0.0)
> [R] Bindings for paste(collapse), str_c(collapse), and str_flatten()
> --------------------------------------------------------------------
>
> Key: ARROW-12711
> URL: https://issues.apache.org/jira/browse/ARROW-12711
> Project: Apache Arrow
> Issue Type: New Feature
> Components: R
> Reporter: Ian Cook
> Priority: Major
> Labels: query-engine
> Fix For: 8.0.0
>
>
> These are the aggregating versions of string concatenation—they combine values from a set of rows into a single value.
> The bindings for {{paste()}} and {{str_c()}} might be tricky to implement because when these functions are called with the {{coallapse}} argument unset, they do _not_ aggregate.
> In {{summarise()}} we need to be able to use scalar concatenation within aggregate concatenation, like this:
> {code:java}
> starwars %>%
> filter(!is.na(hair_color) & !is.na(eye_color)) %>%
> group_by(homeworld) %>%
> summarise(hair_and_eyes = paste0(paste0(hair_color, "-haired and ", eye_color, "-eyed"), collapse = ", ")){code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)