Question

Question 1: Use the gapminder dataset in library(gapminder) to answer the following questions: 1. What continent...

Question 1: Use the gapminder dataset in library(gapminder) to answer the following questions:

1. What continent experienced the highest percentage increase in life expectancy in the 1952-2007 period (assign it to a1)?

2. What is the maximum gdp per capita in Africa in 2007 (assign it to a2)? (in $ amount, not the country).

3. What is the maximum gdp per capita in Europe in 2007 (assign it to a3)? (in $ amount, not the country).

4. What percentage of countries in Asia had a population of more than 50 million in 2007 (assign it to a4)? 5. What percentage of countries in Europe had a gdp per capita over $30,000 in 2007 (assign it to a5)?

Use R coding please

0 0
Add a comment Improve this question Transcribed image text
Answer #1

library(dplyr)

install.packages("gapminder")
library(gapminder)

a2 <- (gapminder %>% filter(continent == "Africa",year ==2007) %>% arrange(desc(gdpPercap)))[1,"gdpPercap"]
a2
a3 <- (gapminder %>% filter(continent == "Europe",year ==2007) %>% arrange(desc(gdpPercap)))[1,"gdpPercap"]
a3

a2 = 13206

a3 = 49357

Please post rest first and last questions again

Add a comment
Know the answer?
Add Answer to:
Question 1: Use the gapminder dataset in library(gapminder) to answer the following questions: 1. What continent...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • HI, I need help with this question. Please answer in details. The data set is found below for eac...

    HI, I need help with this question. Please answer in details. The data set is found below for each countries sugar consumption. Thanks! Country,Sugar, GDP, Continent Albania,15.3,4556.144342, Europe Argentina, 38.1,13693.70379, South America Armenia, 33.2,3421.704509, Europe Australia, 34.1, 62080.98242, Europe Austria, 37.9,49485.48219, Europe Azerbaijan,13.9,7189.691229, Europe Belarus,31.8,6305.773662, Europe Belgium, 41.4,46463.60378, Europe Bosnia and Herzegovina,13.4,4754.197861, Europe Brazil, 36.5,12576.19559, South America Canada, 31.3,51790.56695, North America Chile, 41.7,14510.9661, South America China, 6.2,5447.309378,Asia Colombia,23.2, 7124.54892, South America Czech Republic, 30.6,20584.92655, Europe Denmark, 38,59911.90466,Europe Egypt, 26.4,2972.583516,Africa Estonia,31.4,16982.30031,...

  • HI, I need help with answering these questions. Please explain and answer all parts. Data for all...

    HI, I need help with answering these questions. Please explain and answer all parts. Data for all the countries and then the question at the bottom. Sugar Consumption Per Capita.csv Country Albania Argentina Armenia Australia Austria Azerbaijan Belarus Belgium Bosnia and Herzegovina 13.4 4754.197861 Europe Brazil Canada Chile China Colombia Czech Republic Denmark Egypt Estonia Finland France Georgia Germany Ghana Greece Hungary Iceland India Indonesia Iran Sugar GDP Continent 15.3 4556.144342 Europe 38.1 13693.70379 South America 33.2 3421.704509 Europe 34.1...

  • 6. Use the table below to answer the following questions. Country Bolivia China Ghana Argentina Brazil...

    6. Use the table below to answer the following questions. Country Bolivia China Ghana Argentina Brazil GDP per capita 2005 ($) 3,664 4,102 2,007 10,860 8,603 GDP per capita 2010 ($) 4,592 7,519 2,615 15,854 11,239 Which of the countries had the highest level of per capita income in 2010? China. O Bolivia Ghana. Argentina. Brazil. Which country had the highest rate of income growth from 2005 to 2010? Ghana. Brazil China. Bolivia Argentina Do incomes in these countries appear...

  • These are Geography questiones. Please help do these. Question 8 2 pts As discussed in class, which major region in the world is characterized by: 1) having three influential countries; 2) hi...

    These are Geography questiones. Please help do these. Question 8 2 pts As discussed in class, which major region in the world is characterized by: 1) having three influential countries; 2) high life expectancy; 3) low total fertility rates, 4) mainly an urban population; and 5) an aging population? North America Europe Russia & its neighboring countries Middle East Continent of Africa South Asia East Asia Pacific Realm South America Central America 2 pts Question 17 What demographic statistic is...

  • QUESTION 3)What is the critical value of the test statistic to test the mean child mortality...

    QUESTION 3)What is the critical value of the test statistic to test the mean child mortality rate for countries in Africa is more than the mean child mortality rate for countries in South Asia? 0.59 0.299 0.126 2.015 2.35 Case Description Corporations with international operations need to assess the risks associated with setting up and maintaining operations in different regions of the world. Consideration of the risks include considering such issues as political and economic stability. One indicator of the...

  • QUESTION 2) What is the conclusion for t-test concerning if the mean child mortality rate for...

    QUESTION 2) What is the conclusion for t-test concerning if the mean child mortality rate for countries in Eastern Europe is more than the mean child mortality rate for countries in the Middle East? There is insufficient evidence that the mean child mortality rate for countries in Eastern Europe is more than the mean Child mortality rate for countries in the Middle East.   The means are exactly the same.   There is insufficient evidence that the mean child mortality rate for...

  • Already in all African countries, Coca Cola has committed $12 billion to invest in the continent...

    Already in all African countries, Coca Cola has committed $12 billion to invest in the continent between 2010 and 2020. Why does Coca-Cola show such strong commitments to Africa? Founded in 1892, Coca-Cola first entered Africa in 1929. While Africa had always been viewed as a “backwater”, it has recently emerged as a major growth market commanding strategic attention. Of the $27 billion that Coca-Cola’s chairman and CEO Muhtar Kent promised to invest in emerging economies between 2010 and 2020,...

  • ONLY ANSWER THE QUESTIONS AT THE BOTTOM Case Description Corporations with international operations need to assess...

    ONLY ANSWER THE QUESTIONS AT THE BOTTOM Case Description Corporations with international operations need to assess the risks associated with setting up and maintaining operations in different regions of the world. Consideration of the risks include considering such issues as political and economic stability. One indicator of the healthcare and quality of life in a country or region that is considered correlated with the risk and stability in the region is the child mortality rate. As a result, the healthcare...

  • Please help me answer theses practice questions QUESTION 2 Which of the following can a country...

    Please help me answer theses practice questions QUESTION 2 Which of the following can a country implement to protect local industries (e.g. bicycles) according to the video on the deceptive promise of free trade? Border walls local training programs to strengthen local industries protectionist policies such as tarrifs creating a high minimum wage locally governments can't do anything QUESTION 3 Which of the following European countries has a trade surpluse with the US as well as most other European countries...

  • Case Description Corporations with international operations need to assess the risks associated with setting up and...

    Case Description Corporations with international operations need to assess the risks associated with setting up and maintaining operations in different regions of the world. Consideration of the risks include considering such issues as political and economic stability. One indicator of the healthcare and quality of life in a country or region that is considered correlated with the risk and stability in the region is the child mortality rate. As a result, the healthcare and quality of care as measured by...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT