quant analysis for R