A Quantitative Primer On Investments With R