R exercise

Chapter 8 exercise 9b

Sign in to hand in your solution and get feedback.