I have vector $x=[3, 5, 7, 8, 12, 13, 14, 18, 21]$ and wanted to see summary statistics.
if I use summary(x)
function in R, My anwser
Min. 1st Qu. Median Mean 3rd Qu. Max.
3.00 7.00 12.00 11.22 14.00 21.00
But actual anwser is Q1 = 6 and Q2=16
What is the difference ?