![I tried using pivot_wider for the first time, but my data is now spread over multiple lines. How can I achieve what I have illustrated in paint? : r/RStudio I tried using pivot_wider for the first time, but my data is now spread over multiple lines. How can I achieve what I have illustrated in paint? : r/RStudio](https://i.redd.it/lgswqng7ft271.png)
I tried using pivot_wider for the first time, but my data is now spread over multiple lines. How can I achieve what I have illustrated in paint? : r/RStudio
![r - Using a complex pivot_wider to deal with a time series / longitudinal measurement design - Stack Overflow r - Using a complex pivot_wider to deal with a time series / longitudinal measurement design - Stack Overflow](https://i.stack.imgur.com/TBEJh.png)
r - Using a complex pivot_wider to deal with a time series / longitudinal measurement design - Stack Overflow
![pivot_wider doesn't change the dimension of dataset after applying for it - General - Posit Community pivot_wider doesn't change the dimension of dataset after applying for it - General - Posit Community](https://community.rstudio.com/uploads/default/original/3X/7/8/78fbb637ed8643b5e52e3f7b4d9c857fba04020a.png)