Some R exercises