Applied Statistical Genetics with R