I'm super new to R and RStudio, so I'm sorry if this is a silly question!
I have an excel file with 3 columns: PID (participant ID), Cond, Time and Correct. Each PID has 150 trials (so 150 different reaction times to 3 different conditions, and their responses are either correct or incorrect) (see image of Excel file).
I want to import these into RStudio, but organise the data so that each PID is a single list. Within each PID list, I want 3 dataframes which include the respective condition, time and correct response for that specific PID.
Here is what I want the data to LOOK like in RStudio (see the image of example data in R).
Does anyone know how I can rearrange the data to look like this after I have read in the .csv file into R Studio?
Any help would be much appreciated!
Picture of what I WANT the data to look like once it's organised
Picture of how my data is organised as a .csv file
question from:
https://stackoverflow.com/questions/65948388/creating-list-per-participant-id-with-3-dataframes-for-each-participant-in-rstud 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…