Question: # Create separate data frames for males and females with a suffix males < - cef _ fvm % > % filter ( gender =
# Create separate data frames for males and females with a suffix
males ceffvm
filtergender "male"
renameearningsmale earnings
selectearnings
females ceffvm
filtergender "female"
renameearningsfemale earnings
selectearnings
# Join male & female data frames on 'age' & calc. the ratio
dfratio innerjoinmales females, by "age"
mutateratio earningsmale earningsfemale
# Display the table you created
dfratio
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
