how to get quartiles in r code example Example: quartile in r quantile(c(1,2,3,4,5), 0.9) # 90% # 4.6