Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions