Question: Using the 'Gapminder' dataset, filter the data for the year 2 0 0 7 and create a new variable ' gdp _ category' based on
Using the 'Gapminder' dataset, filter the data for the year and create a new variable gdpcategory' based on GDP per capita. Classify countries into three categories: 'Low, 'Medium, and 'High' based on the following criteria:
'Low' if GDP per capita is less than
'Medium' if GDP per capita is between inclusive and exclusive
CM
Page of
'High' if GDP per capita is or more.
Write a script to perform these operations and provide a brief explanation of your approach.
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
