Basic statistics of a set of values
March 9th, 2009 at 11:21am
Just in order to find that when searching for it yet another time:
Problem: You have a set of values (for instance time it took to process various queries). You want a quick overview of how the values are distributed.
Solution: Store the values in a file separated by newline, read the file with R and output summary statistics.
R: times <- scan(”times”, list(0))
Read 30000 records
R: summary(times[[1]])
Min. 1st Qu. Median Mean 3rd Qu. Max.
6.00 12.00 13.00 16.75 14.00 8335.00
That’s it.