-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider dplyr::count
?
#2
Comments
Hi @apreshill ! Thank you for your kind and encouraging words. I love these suggestions, thank you for taking the time to write them up! I absolutely agree that Reading these thoughtful suggestions was a nice learning opportunity for me and I'm sure others would appreciate having more options as well. I'll be updating the tutorial and the slides to include these additions! If it sounds good to you I'll link back to you and this issue in both 😃 |
Yay- thanks for being so open to this idea! I'm excited to see v2 🥰 For what it's worth, I typically teach count after group/summarize, with a transition like "many times you just want to count things, like the number of rows per group like species. This is so common there is a special function for it." I also suggest learners think of it as |
Ooh also (sorry I'm excited!), they added a nice
For example. Anyway, thanks for letting me nerd out on counting all the things with you! 🤓 |
Haha, I'm here for it 🤓 Thanks for that teaching tip, I think your transition is a nice way to highlight how Bonus points for sharing the I'm so used to using the |
Hi @spcanelon!
I love these slides so much, and thank you so much for your wonderful treatment of our dear penguins 🐧
As I was working through your slides, I noticed a great opportunity for teaching
dplyr::count()
and wanted to suggest it to you as a possible addition for your slides on data wrangling. Specifically, where you show:You could instead show:
Then to show the group/summarize pattern, you could group by species/sex then use
min(flipper_length)
for example, or max/mean/median, etc. instead ofn()
.For mutate, you currently have this:
which would be another great opportunity for using
count()
to simplify, usingadd_count()
with thewt
argument!Anyway, hope you don't mind the suggestion. I think
count()
and friends can help make series of pipes like this more readable. But again, great job and thank you for sharing 🤩Alison
The text was updated successfully, but these errors were encountered: