title: Get columns in frame based on values in second frame
body: <p>I have 2 dataframes. One has a ID column with alot of arranged IDs.
  The other one has just specific rows of the first column. Those are my markers.
  I need to get the sum of the of the values in a specific column based on the id values of the second column.
  The first column may be</p>
  
  <pre><code>id   goals   cards   group
  1      2       2       1
  2      3       2       1
  3      4       2       1
  4      5       1       1      
  5      1       2       1
  1      2       2       2
  2      3       2       2
  3      4       2       2
  4      5       1       3      
  5      1       2       3
  </code></pre>
  
  <p>the second one:</p>
  
  <pre><code> id   goals   cards   group
    2      3       2      1
    5      1       2      1
    2      3       2      2
    3      4       2      2
    5      1       2      3
  </code></pre>
  
  <p>what  i need to get:</p>
  
  <pre><code> id   goals   cards   group   points
   1      2       2       1      2-(2+2)
   2      3       2       1      0 cause in second list
   3      4       2       1      4-(2+1+2)
   4      5       1       1      5-(1+2)
   5      1       2       1      0 cause in second list
   1      2       2       2      2-(2+2)
   2      3       2       2      0
   3      4       2       2      0
   4      5       1       3      5-(1+2)  
   5      1       2       3      0
  </code></pre>
  
  <p>Something like: ??</p>
  
  <pre><code>df1&lt;- df1%&gt;%
  rowwise() %&gt;% 
  mutate(points= 
         goals
         -(sum( df1$cards[df1$id &lt;= df2$id &amp; df1$id&gt;df1$id])))
  </code></pre>