R programming for data analysis