Quantitative analysis in R