R codes (data science track)