title: slice lowest positive value in R
body: <p>I have a dataset looking like this:</p>
  <pre><code>df &lt;- data.frame(ID=c(1, 1, 1, 2, 2, 3), days=c(100, 10, -8, -5, 12, 10))
  </code></pre>
  <p>Now I only want to take the lowest positive value of &quot;days&quot; so that my output would look like this:</p>
  <pre><code>new &lt;- data.frame(ID=c(1, 2, 3), days=c(10, 12, 10))
  </code></pre>
  <p>I have thought about this:</p>
  <pre><code>df%&gt;%
  group_by(ID)%&gt;%
  slice_min(days)
  </code></pre>
  <p>But of course this will return the lowest number number also if it is negative. What can I do to only get the <strong>lowest</strong> <strong>positive</strong> values?</p>
  <p>Preferably using dplyr.</p>
  <p>Thanks so much!</p>