Source: http://math.univ-lille1.fr/~schmisse/M1finance_logiciels/TP1_intro_R.pdf