KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a dataset with several columns, one of which is a column for reaction times. These reaction times are comma separated to denote the reaction times (of the same participant) for the different trials. For example: row 1 (i.e.: the data from participant 1) has the following under the column "reaction times" reaction_times 2000,1450,1800,2200 Hence these are the reaction times of participant 1 for trials 1,2,3,4 . I now want to create a new data set in which the reaction times for these trials all form individual columns. This way I can calculate the mean reaction time for each trial . trial 1 trial 2 trial 3 trial 4 participant 1: 2000 1450 1800 2200 I tried the colsplit from the reshape2 package but that doesn't seem to split my data into new columns (perhaps because my data is all in 1 cell). Any suggestions?
Tags (comma-separated)
Save Edits
Cancel