title: R 3.1.0 number of items to replace is not a multiple of replacement length error
body: <p>I have written the following R code:</p>
  
  <pre><code>csv_data&lt;-temp[1:3]
  
  req_data&lt;-NULL
  
  for(j in 1:length(1:3)){
    req_data[j]&lt;-read.table(csv_data,sep=",")
  }
  </code></pre>
  
  <p>csv_data contains 3 files "001.csv", "002.csv" and "003.csv"</p>
  
  <p>each file has 4 columns</p>
  
  <p>After this for loop I expect req_data to contain the 3 files as:</p>
  
  <pre><code>req_data[1] - contains "001.csv" (all 4 columns)
  req_data[2] - contains "002.csv" (all 4 columns)
  req_data[3] - contains "003.csv" (all 4 columns)
  </code></pre>
  
  <p>But what req_data actually contains:</p>
  
  <pre><code>req_data[1] - contains "001.csv" (only 1st column)
  req_data[2] - contains "002.csv" (only 1st column)
  req_data[3] - contains "003.csv" (only 1st column)
  </code></pre>
  
  <p>How can i get the expected result?</p>