Unfortunately, I'm totally lost with R. I grew up with SPSS, which I really regret right now.
My problem:
- I have several Excel files
- In each file I have several rows, which belong to one specific participant. Each row consists of several columns. E.g. for participant A several rows with several columns, for participant B several rows with several columns and so on
- My goal is to have just one row for each participant with all the data in columns
- This means, I need a syntax which moves the second row of participant A (and so on) to the column end of the first row
- Afterwards the next row of participant A needs to be moved to the end of the first row. This should be iterated until I have only one row for participant A with all the data in columns.
- Then I need to do same for participant B, C and so on
Is there a possibility to do this with r? I'm so lost.
Best, Jonas