I'm relatively new to r studio. I have data from a repeated measures study. I need to obtain mean reaction times for each participant per condition. The data frame is organized in wide format. Each participant has 32 single reaction times or trials, but split across 4 different conditions. The order of trials x condition is randomized per participant. Is it possible to create a filter or subset for each condition, and then obtain the mean reaction time? I'm having difficulty with using the "select" command because the order of trials x condition is not the same per participant so I can't select a subset of columns for all participants. Any help would be much appreciated!