I have a matrix of items from a psychological test that I would to convert to a dataset format (dataframe).
The format of the matrix is:
1: 2 2: 2 3: 2 4: 1 5: 2 6: 1 7: 2 8: 2 9: 1 10: 1, etc. The numbers before the ":" correspond to the item number, the number following corresponds to the response (1=yes; 2=no).
I need to create a dataset with two rows, the first being the item number, the second being the response. So it would be a really wide dataset since there are 567 items.
Anyone could give suggestions about the package that I could use to do this (or example of code if possible) ?