R exercises and examples