tidyr has been extremely useful to me as an analyst since I discovered it. Specifically, I’m talking about the two functions: gather and spread. Often, “secondhand data” (just heard this term today) need to be transformed into long format , or the results of my analyses need to be in wide format so it’s more easily digestable by business people. I just did a deep dive of dplyr, so I thought I’d look into tidyr next!

Here are the functions that I discovered and think will be useful in future analyses:

I just used the tidyr reference manual to create this write-up!