Question: Write a function called ` count _ name ` that, when given a name as an argument, returns the total number of births by year
Write a function called countname that, when given a name as an argument, returns the total number of births by year from the babynames data frame in the babynames package that match that name. The function should return one row per year that matches and generate an error message if there are no matches Run the function once with the argument Ezekiel and once with Ezze
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
