title: Manipulating and formatting the output of data frames
body: <p>Simply, I want to print all the combinations of 1 through 5 as coordinates (x,y), and have the average printed beside it.</p>
  
  <p>Now I'm a month or so into R, and this is what I've managed:</p>
  
  <pre><code>combination &lt;- combn(seq(1:5), 2)
  combination &lt;- data.frame(combination)
  combination &lt;- rbind(combination, combn(seq(1:5), 2, mean))
  mapply(paste, combination[1,], combination[2,], MoreArgs = list(sep = ","), USE.NAMES = FALSE)
  </code></pre>
  
  <p>So I have a data frame with everything I need, but what has me stumped is getting it printed like:</p>
  
  <p>(1,2) 1.5
  (1,3) 2
  etc.</p>
  
  <p>Can someone point me in the right direction on this?</p>
  
  <p>Much appreciated,
  Chris</p>