Analytics using R