title: How to list and estimate all possible pairwise comparisons in R
body: <p>I need to estimate all possible pairwise combinations of a data list.</p>
  
  <p>This is an example of my data
  <img src="https://i.stack.imgur.com/4B48l.png" alt="This is an example of my data">
  For example, for A (Column1), I need to estimate z-x, z-y and x-y differences and their reverse cases. I mean, I should get back: -10, -20, -30, and 10, 20 and 30 for reverse cases. And then I need to estimate all possible pairwise combinations for B and C following the explanation for A. I need to create a list of all pairwise combinations for 4000 data.
  Also, I share a link with an Excel file with my example.
  Example in Excel
  <a href="http://www.filedropper.com/example_1" rel="nofollow noreferrer">Example in Excel</a>
  I thank you in advance for your time and help.</p>