title: R programming, naming output file using variable
body: <p>I would like to direct output to a file, using a write.csv statement.  I am wanting to write 16 different output files, labeling each one with the extension 1 through 16.</p>
  
  <p>Example as written now:</p>
  
  <pre><code>    trackfilenums=1:16
      for (i in trackfilenums){
         calculations etc
         write.csv(max.hsi, 'Severity_Index.csv', row.names=F)
      }
  </code></pre>
  
  <p>I would like for the output csv files to be labeled 'Severity_Index_1.csv', 'Severity_Index_2.csv', etc.  Not sure how to do this in R language.</p>
  
  <p>Thanks!
  Kimberly</p>