title: How do I retrieve a simple numeric value from a named numeric vector in R?
body: <p>I am using R to calculate some basic statistic results. I am using the quantile() function,to calulate quantiles on a data frame column as follows.</p>
  
  <pre><code>&gt; quantile(foobars[,1])
       0%     25%     50%     75%    100% 
   189000  194975  219500  239950 1000000 
  </code></pre>
  
  <p>I want to be able to individually access the calculated quantiles. However, I can't seem to find out how to do that. When I check the class of the returned result, it a 1 dimensional numeric.</p>
  
  <p>I tried this:</p>
  
  <pre><code>&gt; q &lt;- quantile(foobars[,1])
  &gt; q[3]
     50% 
  219500
  </code></pre>
  
  <p>Which seems to return a tuple (quantile level + number). I am only interested in the number (219500 in this case.</p>
  
  <p>How may I access only the number into a simple (numeric) variable?</p>