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 NFLHW 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:
years: "Rookie"
to years: years"
to years: years"
to years: years"
or more years: 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 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:
AFC East
AFC North
AFC South
AFC West
NFC East
NFC North
NFC South
NFC West
A frequency table of Division should result in:
tableNFL$Division
AFC East AFC North AFC South AFC West NFC East NFC North NFC South NFC West
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
