I have 10 folders, 1 for each of my participants. Each folder has 3 files per each trial, so trial 1 will have an A file, B file, and C file that represent different hardware collecting data. and they all follow the same naming convention (Afile1,Afile2,Afile3,etc).
I'm trying to create a loop that runs through Folder 1, Folder 2, etc and extracts each of those files for each trial and puts them in a variable.
My goal is to have a variable for A files, B files, and C files that is organized for participants 1-10. The layout would look something like this
AFiles = 24 rows (24 trials per participant) 10 columns (10 participants).
Hope this makes sense. I've tried numerous codes that I've found from searching on how to handle sub-folders, importing multiple folders, etc but none seem to work.