Skip to content
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

Spread and gather #20

Open
gadenbuie opened this issue Nov 5, 2018 · 1 comment
Open

Spread and gather #20

gadenbuie opened this issue Nov 5, 2018 · 1 comment

Comments

@gadenbuie
Copy link
Member

kierisi: there's a pretty large discrepancy between how well I think I know spread() and gather() and how well I actually know spread() and gather() 😬
https://twitter.com/kierisi/status/1056637253483720704

Yup this is exactly the intuition I developed! Really helps to think of have and want. Only addition I might propose is if I want to gather all but one column you can just do gather (data,wantkey,wantval, -column that shouldn't be gathered)
https://twitter.com/VizMonkey/status/1056723714384019458

Me guessing if gather() or spread() is the right choice. Literally every time I need it. #rstats #tidyverse
https://twitter.com/CedScherer/status/1049289807380320266

Spread and gather as in spreading butter on bread and gathering leaves into a pile: https://twitter.com/WeAreRLadies/status/1054742083607642112

I can't remember the difference between spread() and gather() to save my life. So I decided to rename them instead 😂🤓
https://twitter.com/Emil_Hvitfeldt/status/1054144920141746177

@tgerke
Copy link
Member

tgerke commented Nov 5, 2018

also worth giving historical context against reshape2 based functions e.g. melt/cast, and/or dare I suggest even older aggregate style solutions with reshape for us dinosaurs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants