The function summary()
in R is quite convenient as it gives at once the following values (in order of appearance):
my.dataset <- c(1,2,3,4,5,6,7,8,9,10)
summary(my.dataset)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.00 3.25 5.50 5.50 7.75 10.00
Note that most of these values are actually used for drawing a boxplot.