Rstudio Homework

d=read.csv(“county.csv”)

View(d)

Don't use plagiarized sources. Get Your Custom Essay on
Rstudio Homework
Just from $5/Page
Order Essay

# Name of the dataset is “d”.

# View the dataset. This is about US counties,

# such as county’s state, population, income, etc.

# QUESTIONS

# 1) What percentage of the dataset is populated with NA values?

#    Hint: Calculate total NAs then divide by (number of rows X number of columns)

# 2) Show the county name and population in 2017 for the state of Connecticut

#    where unemployment rate is greater than 5.0.

# 3) Show the county names, states and per capita income whose population

#    change is positive and unemployement rate is less than 2.

# 4) We are wondering about population change from 2010 to 2017

#    in counties where poverty rate is greater than 20 and

#    unemployment rate is greater than 8.

#    For this purpose, create a new variable using the following formula

#    as a new column of the dataset d.

#    popChng17_20 = (pop2017 – pop2010)/pop2010.

#

# 5) The population in “Hoonah Angoon Census Area” of Alaska in 2017

#    is missing (i.e. NA). However, a quick Google search showed that

#    this population is actually 2139. Now replace the NA in this

#    spot with 2139.

# 6) We are wondering about mean poverty level for metro and non-metro counties

#    in the state of Connecticut. Calculate them. Which one is higher?

#    (NOTE: To ignore NAs, use na.rm = TRUE when calculating means)

# 7) Which year has the highest variation in terms of county populations?

#    Is it 2000, 2010 or 2017? (NOTE: To ignore NAs, use na.rm = TRUE )

# 8) Create a histogram for homeownership variable

#    with 40 bars. Comment on the skewness of the distribution.

# 9) Create a boxplot showing poverty variable for categories metro and non-metro areas

#    (HINT: use y ~ x notation in the boxplot.) Comment on the plot

#    as to which location has higher poverty overall?

# 10) Assume that you are investigating the variables that

# could be associated with ‘poverty’ variable. Create scatter

# plots on a 2 x 2 panel for poverty vs. unemployment_rate,

# homeownership, per_capita_income, and pop_change.

# Which variables seem to be associated with poverty?

# (NOTE: If you get “figure margins too large”, enlarge the plotting

# window to the left and upward)

#################################################

# In this part, use ggplot2 and dplyr packages

#################################################

library(ggplot2)

library(dplyr)

# 11) We wonder about the change in unemployement rate

#     as education level changes.

#     For this purpose, create a boxplot for unemployment_rate vs. median_edu.

#     Label x-axis as “Education Level”

#     Comment on the chart. How does the unemployement rate change?

# 12) Using dplyr and ggplot2, find population change from 2010 to 2017

#     in counties where poverty rate is greater than 20 and

#     unemployment rate is greater than 8.

#     For this purpose, mutate a new variable

#     called popChng17_20 = (pop2017 – pop2010)/pop2010.

#     Then, create a ggplot boxplot showing popChng17_20 vs metro.

# 13) Group the dataset by State, and then summarize using

#     count, mean unemployement rate, and mean per capita income.

#     Sort the result by mean unemployment rate.

#     (Hint: Remove NAs when calculating means: na.rm = TRUE)

 

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We are committed to making our customer experience enjoyable and that we are keen on creating conditions where our customers feel secured and respected in their interactions with us.
With our qualified expert team who are available 24/7, we ensure that all our customer needs and concerns are met..

Money Payback-back guarantee

Our refund policy allows you to get your money back when you are eligible for a refund. In such a case, we guarantee that you will be paid back to your credit card. Another alternative we offer you is saving this money with us as a credit. Instead of processing the money back, keeping it with us would be an easier way to pay for next the orders you place

Read more

Zero-plagiarism guarantee

All orders you place on our website are written from scratch. Our expert team ensures that they exercise professionalism, the laid down guidelines and ethical considerations which only allows crediting or acknowledging any information borrowed from scholarly sources by citing. In cases where plagiarism is confirmed, then the costumier to a full refund or a free paper revision depending on the customer’s request..

Read more

Free-revision policy

Quality is all our company is about and we make sure we hire the most qualified writers with outstanding academic qualifications in every field. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

We understand that students are not allowed to seek help on their projects, papers and assignments from online writing services. We therefore strive to uphold the confidentiality that every student is entitled to. We will not share your personal information elsewhere. You are further guaranteed the full rights of originality and ownership for your paper once its finished.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency