title: Split dataset from a vector
body: <p>I'd like to select a  subset from <code>df</code> dataset using a vector <code>division_value</code> and apply the minimum for each <code>df1</code>, <code>df2</code>, and <code>df3</code>.</p>
  <h1>Input</h1>
  <pre><code>df &lt;- data.frame(id = c(1, 3, 4, 5, 7, 8, 9), x = runif(7), y = rnorm(7))
  df
  
    id          x            y
    1 0.15316440  0.300897329
    3 0.17532977 -1.348602492
    4 0.02923305  0.573446127
    5 0.50233682 -0.415615162
    7 0.65804355  0.003661438
    8 0.52747538 -0.097006421
    9 0.12545577  2.043525380
  
  division_value &lt;- c(3, 6, 9)
  </code></pre>
  <h1>Expected Output</h1>
  <pre><code> &gt; df1
   id          x            y
    1 0.15316440  0.300897329
    3 0.17532977 -1.348602492
  
  apply(df1[, -1], 2, min)
  
   &gt; df2
    id          x            y
    4 0.02923305  0.573446127
    5 0.50233682 -0.415615162
  
   apply(df2[, -1], 2, min)
  
   &gt; df3
   id          x            y
    8 0.52747538 -0.097006421
    9 0.12545577  2.043525380
  
  apply(df3[, -1], 2, min)
  </code></pre>