Maybe this is just documentation, but a warning would be nice. I know I can ungroup() and I shall.
x <- data.frame(y = 1:3, z = LETTERS[3:1])
x %>%
group_by(z) %>%
select(-z)
#> Source: local data frame [3 x 2]
#> Groups: z [3]
#>
#> z y
#> (fctr) (int)
#> 1 C 1
#> 2 B 2
#> 3 A 3
Same issue on stack overflow here and here.
Maybe this is just documentation, but a warning would be nice. I know I can
ungroup()and I shall.Same issue on stack overflow here and here.