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 2007 and create a new variable 'gdp_category' 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 10000.
'Medium' if GDP per capita is between 10000(inclusive) and 20000(exclusive).
'High' if GDP per capita is 20000 or more.
Write a script to perform these operations and provide a brief explanation of your approach. Using R STUDIO

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Economics Questions!