Skip to content

group_by() fails on already grouped data frame when using .data pronoun  #3533

@kevinykuo

Description

@kevinykuo

E.g.

iris %>% 
  group_by(Species) %>%
  group_by(.data$Species)
# Error in mutate_impl(.data, dots) : 
#   Column `Species` can't be modified because it's a grouping variable

Metadata

Metadata

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions