I'm new to nested data and am not experienced in how to best organize and shuffle them.
Currently I have nested data with specific subjects, trials and two ratings A and B. All of my data are organized in rows but my ratings A and B are structured as single columns. I want to reorganize them so the column of rating B is added to my rows including all of the other information from the remaining columns (except rating A).
To hopefully make it easier to understand I added a screenshot of what I would like to have.