Skip to content

Spread and gatherΒ #20

@gadenbuie

Description

@gadenbuie

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions