-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorcategory:interface
Description
Original issue tidyverse/dplyr#2360 by @rpruim.
The following result for data_frame() is unexpected (to me) given the result of mutate() below it.
data_frame(a = 1:3, b = 1, c = b/sum(b))
## # A tibble: 3 × 3
## a b c
## <int> <dbl> <dbl>
## 1 1 1 1
## 2 2 1 1
## 3 3 1 1
data_frame(a = 1:3) %>% mutate(b = 1, c = b/sum(b))
## # A tibble: 3 × 3
## a b c
## <int> <dbl> <dbl>
## 1 1 1 0.3333333
## 2 2 1 0.3333333
## 3 3 1 0.3333333Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorcategory:interface