I have this code in R:
data <- c(55, 64, 68, 74, 78, 80, 84, 90, 93, 95)
summary(data)
I was expecting the Median
to be 79
, 1st Quartile
to be 68
and 3rd Quartile
to be 90
according to my previous knowledge.
What I got as an output was 79
for the median, but the 1st quartile
came out to be 69.5
and 3rd quartile
came out to be 88.5
.
I cannot figure out how this output has been generated. Can anyone out there help me with this?