title: How to print R variables in middle of String
body: <p>I am trying to print out a line that contains a mixture of a String and a variable. Here is the R code at present:</p>
  
  <pre><code>cat("&lt;set name=\",df$timeStamp,\" value=\",df$Price,\" &gt;&lt;/set&gt;\n")
  </code></pre>
  
  <p>Here is what it prints out when run:</p>
  
  <pre><code>&lt;set name=",df$timeStamp," value=",df$Price," &gt;&lt;/set&gt;
  </code></pre>
  
  <p>I would like it to have the value of df$timeStamp and df$Price printed out. I would like for example the following:</p>
  
  <pre><code>&lt;set name="2010-08-18 12:00:59" value="17.56" &gt;&lt;/set&gt;
  </code></pre>
  
  <p>Any idea where I am going wrong in the code?</p>
  
  <p>Any and all help greatly appreciated.</p>
  
  <p>Regards,</p>
  
  <p>Anthony.</p>