Sorry, my mistake. I was thinking of part e.
Yes, you are correct, check.n.birthdays only takes n as an argument. You want to repeat the this calculation m times, so you'll need to pass sapply an input vector that will cause sapply to do this.
Yes, you are correct, check.n.birthdays only takes n as an argument. You want to repeat the this calculation m times, so you'll need to pass sapply an input vector that will cause sapply to do this.