Question: how to do iqr in r?
Answer: The sample interquartile range is defined as: IQR=^X0.75−^X0.25(1) where Xp denotes the p'th quantile of the distribution and ^Xp denotes the estimate of this quantile (i.e., the sample p'th quantile).