Skip to content

Commit

Permalink
Fix dplyr 1.0 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rdpeng committed Jul 6, 2020
1 parent 98c90de commit 7fcd7e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data_Manipulation/scripts/step_4_titanic-correct.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ titanic_4 <- titanic %>%
group_by(Pclass, agecat, Sex) %>%
summarize(N = n(),
survivors = sum(Survived == 1),
perc_survived = 100 * survivors / N)
perc_survived = 100 * survivors / N,
.groups = "drop")

0 comments on commit 7fcd7e1

Please sign in to comment.