title: How to get R to read in files from multiple subdirectories under one large directory?
body: <p>I am trying to get started with writing my first R code. I have searched for this answer but I am not quite sure what I've found is what I'm looking for exactly. I know how to get R to read in multiple files in the same subdirectory, but I'm not quite sure how to get it to read in one specific file from multiple subdirectories.</p>
  
  <p>For instance, I have a main directory containing a series of trajectory replicates, each replicate is in it's own subdirectory. The break down is as follows;</p>
  
  <p>"Main Dir" -> "SubDir1" -> "ReplicateDirs 1-6"</p>
  
  <p>From each "ReplicateDir" I want R to pull the "RMSD.dat" table (file) to read from. All of the RMSD.dat files have identical names, they are just in different directories and contain different data of course.</p>
  
  <p>I could move all the files to one folder but this doesn't seem like the most efficient way to attack this problem. </p>
  
  <p>If anyone could enlighten me, I'd appreciate it.</p>
  
  <p>Thanks</p>