R exercise

Chapter 4 exercise 12

Sign in to hand in your solution and get feedback.