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 · 0 comments

Comments

@mitchelloharawild
Copy link

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 added the bug label May 10, 2019

@romainfrancois romainfrancois self-assigned this May 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.