Question: what code in R would be used to do this. 1 Find the subset of players that earned at least $1,000,000. Assign those rows to

 what code in R would be used to do this. 1
what code in R would be used to do this.

1 Find the subset of players that earned at least $1,000,000. Assign those rows to the variable BigBucks. (a) How many players are in this list? (b) Using the hist() method, draw a histogram of the salaries of the Players in the BigBucks category. In order to improve the readability of the histogram, scale the data so that the salaries are in millions of dollars. For example, Prescot earned $31,409,000. You would depict this as 31.4. Of course you need to provide an appropriate label for the x-axis so that it is clear that this is $31.4M and not thirty one dollars and 40 cents ;-) Set the number of bins in the histogram to 5 using the breaks" parameter. (see ?hist for details) Save the plot to a PDF Open the PDF file to make sure that you succeeded. 2. Analyze the entire dataset to find out how many players make the lowest salary. Start by finding the minimum salary and the find those players that make that minimum salary. 3. How many players earn more than 10 million? 4. Compare the salaries of the Kansas City Chiefs (KAN) to the salaries of the Green Bay Packers (GNB). Create two smaller datasets called Chiefs and Packers that contain the data for just these teams. What is the total salary for each of these teams? What is the largest salary on each team and who makes this amount? What is the average salaries on both teams? Draw a histogram of the salaries of the two teams. Make a PDF of each of these histograms. Give them sensible titles and label the axes. . 1 Find the subset of players that earned at least $1,000,000. Assign those rows to the variable BigBucks. (a) How many players are in this list? (b) Using the hist() method, draw a histogram of the salaries of the Players in the BigBucks category. In order to improve the readability of the histogram, scale the data so that the salaries are in millions of dollars. For example, Prescot earned $31,409,000. You would depict this as 31.4. Of course you need to provide an appropriate label for the x-axis so that it is clear that this is $31.4M and not thirty one dollars and 40 cents ;-) Set the number of bins in the histogram to 5 using the breaks" parameter. (see ?hist for details) Save the plot to a PDF Open the PDF file to make sure that you succeeded. 2. Analyze the entire dataset to find out how many players make the lowest salary. Start by finding the minimum salary and the find those players that make that minimum salary. 3. How many players earn more than 10 million? 4. Compare the salaries of the Kansas City Chiefs (KAN) to the salaries of the Green Bay Packers (GNB). Create two smaller datasets called Chiefs and Packers that contain the data for just these teams. What is the total salary for each of these teams? What is the largest salary on each team and who makes this amount? What is the average salaries on both teams? Draw a histogram of the salaries of the two teams. Make a PDF of each of these histograms. Give them sensible titles and label the axes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!