Going from wide to long format in R - Pivoting to tidy data with the Tidyverse
Learning Objectives
1. Understand what tidy data are
2. Two reasons we need to pivot
3. Four arguments required for the pivot_longer function
Getfit dataset: quantpsych.net/data/getfit.csv
My R Code: quantpsych.net/data/11a-pivoting.R
Пікірлер: 5
very very helpful, as usual
40-year career here. If I had a penny for every time I converted a dataset from long to wide or from wide to long (with SAS), I’d be VERY rich… 😉
very useful, btw, you should wear blue more.
Code link seems to not be working :P
I need your guide with my master dissertation, how can I contact you sir?