title: R: How do I concatenate decimal number value and string in print statement?
body: <p>I am trying to do a simple print statement in R.</p>
  
  <pre><code>print("correlation: " + cor(data$Height, data$Weight))
  </code></pre>
  
  <p>But I get an error "non-numeric argument to binary operator". Of course, printing either the string or the correlation function by themselves work. Is this something that the R programming language can't handle? (ie concatenating two items).</p>
  
  <p>By the way, this doesn't work either.</p>
  
  <pre><code>correlation &lt;- cor(data$Height, data$Weight)
  print("correlation: " + correlation)
  </code></pre>
  
  <p>I have tried to query Google using a variety of search terms which didn't help and read the help(print) R documentation which confuses me even more. </p>