title: Find n smallest values from data?
body: <p>How to get 3 minimum value on the data automatically?</p>
  
  <p>Data:</p>
  
  <pre><code>data &lt;- c(4,3,5,2,2,1,1,5,6,7,8,9)
  [1] 4 3 5 2 2 1 1 5 6 7 8 9
  </code></pre>
  
  <p>With <code>min()</code> function just return 1 value and I want to get 3 minimum value from data.</p>
  
  <pre><code>min(data)
  [1] 1
  </code></pre>
  
  <p>Can I have this from a data?</p>
  
  <pre><code>[1] 1 1 2
  </code></pre>