Source: https://pbil.univ-lyon1.fr/members/mbailly/Biostat_Bioinfo/cours_intro_R.pdf