title: Aggregate/Group_by second minimum value in R
body: <p>I have used either <code>group_by()</code> in <code>dplyr</code> or the <code>aggregate()</code> function to aggregate across columns in <code>R</code>. For my current problem I want to group by an individual but finding the second lowest of one column (Number) and the lowest of another (Year). So, if my data looks like this:</p>
  
  <pre><code>Number     Individual     Year     Value
  123        M. Smith       2010     234
  435        M. Smith       2011     346
  435        M. Smith       2012     356
  524        M. Smith       2015     432
  119        J. Jones       2010     345
  119        J. Jones       2012     432
  254        J. Jones       2013     453
  876        J. Jones       2014     654
  </code></pre>
  
  <p>I want it to become:</p>
  
  <pre><code>Number     Individual     Year     Value
  435        M. Smith       2011     346
  254        J. Jones       2013     453
  </code></pre>
  
  <p>Thank you.</p>