title: Extract data from text files using for loop
body: <p>I have 40 text files with names : </p>
  
  <pre><code>[1] "2006-03-31.txt" "2006-06-30.txt" "2006-09-30.txt" "2006-12-31.txt" "2007-03-31.txt"
  [6] "2007-06-30.txt" "2007-09-30.txt" "2007-12-31.txt" "2008-03-31.txt" etc... 
  </code></pre>
  
  <p>I need to extract one specific data, i know how to do it individually but this take a while: </p>
  
  <pre><code>m_value1 &lt;- `2006-03-31.txt`$Marknadsvarde_tot[1]
  m_value2 &lt;- `2006-06-30.txt`$Marknadsvarde_tot[1]
  m_value3 &lt;- `2006-09-30.txt`$Marknadsvarde_tot[1]
  m_value4 &lt;- `2006-12-31.txt`$Marknadsvarde_tot[1] 
  </code></pre>
  
  <p>Can someone help me with a for loop which would extract the data from a specific column and row through all the different text files please? </p>