title: How to calculate quantiles with NA in data in R
body: <p>I am trying to do RFM Analysis on my data where the Recency(number of days) containS NA.
  Tried the code below:</p>
  
  <pre><code>rawdata1$Rsegment &lt;- findInterval(rawdata1$R,quantile(rawdata1$R, c(0.0, 0.25, 0.50, 0.75, 1.0,na.rm= TRUE)))
  </code></pre>
  
  <p>and getting the following error: </p>
  
  <blockquote>
    <p>Error in quantile.default(rawdata1$R, c(0, 0.25, 0.5, 0.75, 1, na.rm = TRUE)) : 
      missing values and NaN's not allowed if 'na.rm' is FALSE</p>
  </blockquote>