Question: Using the NFL _ HW 5 data set, answer the following questions: a . Create a column in the data set named Playtime that contains

Using the NFL_HW5 data set, answer the following questions:
a. Create a column in the data set named Playtime that contains the following
information:
If the player played:
0 years: "Rookie"
1 to 4 years: "1-4 years"
5 to 8 years: "5-8 years"
9 to 12 years: "9-12 years"
13 or more years: "13+ years"
Hint: Remember that you are writing logical expressions that syphon off the next
set of individuals. For example, if you start with Rookie, when you write your
logical expression for the next category, you only need to worry about the players
who played 4 years or less.
b. Use a function to ensure that Playt ime's levels are listed in the order listed
above.
A frequency table of Playt ime should result in:c. Using the column Division, change the labels of the numbers to:
1= AFC East
2= AFC North
3= AFC South
4= AFC West
5= NFC East
6= NFC North
7= NFC South
8= NFC West
A frequency table of Division should result in:
> table(NFL$Division)
AFC East AFC North AFC South AFC West NFC East NFC North NFC South NFC West
344
349
357
339
350
357
320
348
Using the NFL _ HW 5 data set, answer the

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 Programming Questions!