R programming assignments