Data analysis using R