(This is the English version of https://speakerdeck.com/yutannihilation/tidyr-pivot)
[References]
- tidyr's vignette: https://tidyr.tidyverse.org/dev/articles/pivot.html
- Pivoting data from columns to rows (and back!) in the tidyverse: http://www.storybench.org/pivoting-data-from-columns-to-rows-and-back-in-the-tidyverse/
- tidyr 1.0.0: https://www.tidyverse.org/articles/2019/09/tidyr-1-0-0/