Skip to content

(rename|select)_(at|if|all) functions should adapt grouping if necessary #3410

Closed
@krlmlr

Description

@krlmlr

#3363 (comment), CC @lionel-:

Current behavior:

library(tidyverse)
tibble(a = 1, b = 2) %>% group_by(a) %>% rename_all(toupper)
#> # A tibble: 1 x 2
#> # Groups:   a [1]
#>       a     B
#>   <dbl> <dbl>
#> 1    1.    2.

Created on 2018-03-12 by the reprex package (v0.2.0).

Desired: Column a is renamed to A, the grouping is adapted.

We may want to implement this for the 0.7.5 release.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions