Example codes using R for data analysis