title: read .csv file with unknown path -- R
body: <p>I know this might be very stupid question but I have been spending hours on this</p>
  
  <p>want to read a .csv file that I dont have its full path (*/*data.csv). I know that following would get the path of the current directory but don't know how to adapt</p>
  
  <pre><code>Marks &lt;- read.csv(dir(path = '.', full.names=T, pattern='^data.*\\.csv'))
  </code></pre>
  
  <p>tried this one as well but not working</p>
  
  <pre><code>Marks &lt;- read.csv(file = "*/*/data.csv", sep = ",", header=FALSE))
  </code></pre>
  
  <p>I can't identify specific path as this will be used on different machines with different paths but I am sure about the sub-folders of the main directory as they are result of a bash script</p>
  
  <p>and I am planing to call this from within unix which defines the workspace</p>
  
  <p>my data structure is </p>
  
  <pre><code>lecture01/test/data.csv
  lecture02/test/data.csv
  lecture03/test/data.csv
  </code></pre>