Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Load the midwest dataset from the ggplot 2 package. a . Use the filter function ( page 1 6 1 ) to select
Load the midwest dataset from the ggplot package.
a Use the filter function page to select observations in Ohio.
i What is the average percentage of college educated among these counties?
ii What is the average percentage of Asians in Ohio?
b Use the groupby function to obtain average percentage of college educated and
average percentage of Asians for all midwestern states.
Type the following code below into an Rscript file in order to create two data frames. Once
you have created the data frames do the following:
Using commands found in the Tidyverse package, perform the following joins
individually.
o Left Join
o Right Join
o Full Join
o Using comments in your script, explain the results of the output.
CODE TO CREATE DATA FRAMES
libraryggplot
dataeconomics
econ economics selectdate mapifisinteger, ~x
DF data.framewages rlnorm meanlog log pension
rlnormmeanlog loge hhid :
DF data.framewages rlnorm meanlog log pension
rlnormmeanlog loge hhid :
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started