Data Analytics for the Social Sciences: Applications in R