I'm working on using *apply function on the avg.n.birthdays function to repeat the calculation multiple times for the number of people from 1 to n. But I am having trouble applying each element in 1 to n to this avg.n.birthdays function. Should I be adding additional arguments to the *apply function?
The average.n.birthdays function takes two arguments. If you're going to use an *apply function with it you'll need to pass it the second argument. How to do this is shown on the Assignment web page.