Skip to content

Take ownership of the mutate() step in group_by() #6139

Description

@lionel-

To simplify the error message:

mtcars %>%
  group_by(cyl = 1 + "") %>%
  mutate(new = 1 + "")
#> Error in `group_by()` at dplyr/R/mutate.R:156:2:
#> ! Problem adding computed columns.
#> Caused by error in `mutate()`:
#> ! Problem while computing `cyl = 1 + ""`.
#> Caused by error in `1 + ""`:
#> ! non-numeric argument to binary operator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions