Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouped summarise unlists results #4349

Closed
mitchelloharawild opened this issue May 7, 2019 · 1 comment
Closed

Grouped summarise unlists results #4349

mitchelloharawild opened this issue May 7, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@mitchelloharawild
Copy link

@mitchelloharawild mitchelloharawild commented May 7, 2019

The v0.8.0 release introduced an change in behaviour with combining listed results in a grouped summarise. I couldn't find mention of it in the news, so I'm assuming that this is unintended.


v0.7.6 (last known working release)

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

tibble(grp = "grp", z = 2) %>%
  summarise(z = list(3), y = z)
#> # A tibble: 1 x 2
#>   z         y        
#>   <list>    <list>   
#> 1 <dbl [1]> <dbl [1]>

tibble(grp = "grp", z = 2) %>%
  group_by(grp) %>% 
  summarise(z = list(3), y = z)
#> # A tibble: 1 x 3
#>   grp   z         y        
#>   <chr> <list>    <list>   
#> 1 grp   <dbl [1]> <dbl [1]>

Created on 2019-05-07 by the reprex package (v0.2.1)

Development version

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

tibble(grp = "grp", z = 2) %>%
  summarise(z = list(3), y = z)
#> # A tibble: 1 x 2
#>   z         y        
#>   <list>    <list>   
#> 1 <dbl [1]> <dbl [1]>

tibble(grp = "grp", z = 2) %>%
  group_by(grp) %>% 
  summarise(z = list(3), y = z)
#> # A tibble: 1 x 3
#>   grp   z             y
#>   <chr> <list>    <dbl>
#> 1 grp   <dbl [1]>     3

Created on 2019-05-07 by the reprex package (v0.2.1)

@romainfrancois romainfrancois added this to the 0.8.2 milestone May 9, 2019
@romainfrancois romainfrancois self-assigned this May 10, 2019
@lock
Copy link

@lock lock bot commented Nov 17, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

Loading

@lock lock bot locked and limited conversation to collaborators Nov 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants