title: Comparing values of two tables with respect to a tolerance in R
body: <p>I wanted to compare two tables. If the value of <em>table 2</em> placed in 0.3 tolerance (+0.3 and -0.3) of the table 2 call it normal otherwise call it abnormal.</p>
  
  <p>Sample Data:</p>
  
  <pre><code>Table 1.                        
  
  0.17666667
  -0.2413333
  -0.179666
  0.182437
  0.012229
  0.127333
  -0.1180
  0.8873
  1.24100
  1.5213
  
  Table 2.
  
  -1.6
  -0.5
  -0.4
  -0.4
  -0.2
  2.5
  0.6
  2.2
  2.3
  1.3
  </code></pre>
  
  <p>Expected results for first row:</p>
  
  <p>if   0.17666667**-0.3**&lt;-1.6&lt;0.17666667**+0.3** </p>
  
  <p>result <em>NORMAL</em>
  Otherwise <em>Abnormal</em> </p>