title: Passing string to file name in R
body: <p>I have a variable <code>a=0.01</code></p>
  
  <p>Then I create a matrix: <code>b&lt;-matrix(data=1:5,ncol=5,nrow=1)</code></p>
  
  <p>I would now like to save the matrix so that the name of the matrix is the value stored in <code>a</code>:</p>
  
  <pre><code>save(b_'string', file="b_'string'.Rdata")
  </code></pre>
  
  <p>Where 'string' should be the value stored in <code>a</code>, i.e. <code>0.01</code></p>
  
  <p>So the file should be called <code>b_0.01.Rdata</code> and the variable stored should be <code>b_0.01</code></p>