title: Computing Quantiles for a column in R to subset
body: <p>I have a data set with the following structure:</p>
  
  <pre><code>Name=c("a","b","c")
  Amount_Spent=c(386407,213918,212006)
  </code></pre>
  
  <p>What I am trying to do is compute which quartile the <code>Amount_Spent</code> falls under for each name and assign the value to a new variable (column) <code>Quantiles</code>. I am not able to use any of the apply functions to get this result, can someone help please?</p>
  
  <p>Thanks in advance,
  Raoul</p>