title: foverlaps over 2 columns - 2 criterias
body: <p>I'm using foverlaps to join 2 tables by the values of one column. The issue I'm facing is that I'm hitting the limit on the number of rows (getting "negative length vectors are not allowed" error).
  The way I could resolve it (my plan) is by introducing a new criteria when doing the matching.</p>
  
  <p>DT1</p>
  
  <pre><code>Mass Time &lt;min mass&gt; &lt;max mass&gt;
  100  0    100 - tol   100+tol
  101  0    101 - tol   101+tol
  100  1    100 - tol   100+tol
  101  1    101 - tol   101+tol
  100  2    100 - tol   100+tol
  101  2    101 - tol   101+tol
  </code></pre>
  
  <p>library</p>
  
  <pre><code>Mass    Time    &lt;other cols&gt;  &lt;min mass&gt; &lt;max mass&gt; 
  100.1   0.5                   100.1      100.1     
  100.9   0.9                   100.1      100.1  
  </code></pre>
  
  <p>I'm keying the 2 DTs by min max mass and I'm running foverlaps(DT1, library). All works correctly when not hitting the limit.</p>
  
  <p>Is there a way of using 2 criteria when doing the foverlaps? Or how should I think about the problem?
  What I'm doing in excel to do the matching is something like:</p>
  
  <p>DT1</p>
  
  <pre><code>Mass Time &lt;min mass&gt; &lt;max mass&gt; &lt;min Time&gt;      &lt;max Time&gt;
  100  0    100 - tol   100+tol   0 - timeTol     0 + timeTol
  101  0    101 - tol   101+tol   0 - timeTol     0 + timeTol
  100  1    100 - tol   100+tol   1 - timeTol     1 + timeTol
  101  1    101 - tol   101+tol   1 - timeTol     1 + timeTol
  100  2    100 - tol   100+tol   2 - timeTol     2 + timeTol
  101  2    101 - tol   101+tol   2 - timeTol     2 + timeTol
  </code></pre>
  
  <p>library</p>
  
  <pre><code>Mass    Time    &lt;other cols&gt;  &lt;min mass&gt; &lt;max mass&gt; &lt;min Time&gt; &lt;max Time&gt;
  100.1   0.5                   100.1      100.1      0.5        0.5
  100.9   0.9                   100.1      100.1      0.5        0.5
  </code></pre>