Question: 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
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
