Question: Do this question in R studio.. 1. Use the intro data on Moodle, to create function that takes in an ID number, and prints whichever

Do this question in R studio..

1. Use the intro data on Moodle, to create function that takes in an ID number, and prints whichever of the following is true: a. "Person ID from Nationality makes a salary greater than the average person in this data set." b. "Person ID from Nationality makes a salary less than the average person in this data set." where ID should be replaced with their actual ID number and Nationality should be replaced with their Nationality. Prove the function works by testing it on person 5 and person 9. File Home Insert Page Layout Formulas Data Review
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
