Question: RStudio Coding: Create a function called `BetterShooters` that takes in two teams and returns a data.frame of the team with the better field-goal percentage (FG%).
RStudio Coding:
Create a function called `BetterShooters` that takes in two teams and returns a data.frame of the team with the better field-goal percentage (FG%). The returned data.frame should include the team name, field-goal percentage (FG%), and points (PTS).

416 19880 19830 19805 19830 19780 19805 19830 19855 19755 19705 19855 19830 19780 19780 19880 20005 19880 19905 19880 19830 19905 19705 19830 19830 19830 19755 19805 19955 19805 19730 3489 3372 3283 1 Golden State Warriors* 2 Oklahoma City Thunder 3 Sacramento Kings 4 Houston Rockets 5 Boston Celtics* 6 Portland Trail Blazers* 7 Los Angeles Clippers* 8 Cleveland Cavaliers 9 Washington Wizards 10 San Antonio Spurs* 11 Charlotte Hornets* 12 Atlanta Hawks* 13 Toronto Raptors* 14 New Orleans Pelicans 15 Minnesota Timberwolves 16 Dallas Mavericks* 17 Indiana Pacers 1077 2592 7082 7083 6847 7318 7040 6759 6888 9038 1945 8737 8669 8622 8569 8555 2336 2190 2428 1983 3238 24100 3036 6922 6923 6669 7040 6668 6900 6985 7120 7087 7003 8433 2326 8398 8388 8377 8369 8361 8355 3095 1347 3064 1889 3242 19 Detroit Pistons 20 Denver Nuggets 21 Chicago Bulls 22 Phoenix Suns 23 Miami Heat 24 Memphis Grizzlies* 25 Milwaukee Bucks 2148 3093 2118 1480 7018 6697 6859 6740 6920 3051 8271 3019 8126 8122 8089 1521 0.467 3136 1508 0.439 694 Jazz 29 Philadelphia 76ers 30 Los Angeles Lakers 2957 2970 2880 6593 6887 6956 7988 7982 2255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
