title: Punif and Quinf Functions in R
body: <p>I have a question:</p>
  
  <p>If X is a random variable in a density function which is uniform between -2 and 3.</p>
  
  <p>I want to find these two questions:</p>
  
  <ol>
  <li><p>What is the upper quartile of X?</p></li>
  <li><p>What is the 44% quantile of X?</p></li>
  </ol>
  
  <p>Now the things I have tried are below:</p>
  
  <pre><code>z &lt;- 1 - punif(0.75, min = -2, max = 3, lower.tail = TRUE)
  answer: 0.45
  
  y &lt;- qunif(0.44, min = -2, max = 3, lower.tail = TRUE)
  answer: 0.2
  </code></pre>
  
  <p>First is this even the right way to go about it.
  Second, I understand that Punif finds the accumulate probability of X. What does qunif find, and what does the result tell me about X and the distribution?</p>