Question: Part 2 : Write an R Script: a ) create a vector called unemploy _ rate with 1 2 values, one for each month in

Part 2: Write an R Script:
a) create a vector called unemploy_rate with 12 values, one for each month in 2013. The values for each month are listed below (beginning with Januarys rate of 7.9)
7.97.77.57.57.57.57.37.27.27.27.06.7
a. create a vector called month and add 12 values, one for the name of each month in a year.
Jan Feb Mar Apr May Jun July Aug Sep Oct Nov Dec
b. convert month to a factor variable
c. create a data frame called monthly_rate comprised of unemploy_rate and month.
d. How would you extract the unemployment rate for March?
e. Extract only those months where unemployment was below 7.5%.

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!