title: How to create ratio table between two tables in R with different dimensions?
body: <p>table1 output:</p>
  <pre><code> &lt;&lt;&lt;   &lt;B0     0   010   011   030   072   080   122   132   1GT   89O   AFG   AGO   ALB   AND   ARE   ARG   ARM   AUS   AUT   AVN 
    1     2      2    1     1     1     1     1     2    10     1     2     2     3    25     1     2    66     7    458   392     1 
  </code></pre>
  <p>table2 output:</p>
  <pre><code> 042  090  ALB  ARG  AUS  AUT  AZE 
    1    1    2    4   36   75    1 
  </code></pre>
  <p>The aim is to combine the tables into one table of ratios for labels which exist in both tables. I am stumped, everything I try gives me dimension problems.</p>
  <p>Desired output:</p>
  <pre><code>     ALB         ARG         AUS           AUT 
    2/(2+25)    4/(4+66)   36/(36+458)   75/(75+392)
  </code></pre>
  <p>Any ideas? Every method I try doesnt work &gt;:(</p>