Question

In: Statistics and Probability

Find the lifeExp in Europe across the years. Which year is the highest lifeExp in Europe?,...

Find the lifeExp in Europe across the years. Which year is the highest lifeExp in Europe?, in R command codes

Solutions

Expert Solution


library(gapminder)
library(dplyr)

gapminder %>% filter(continent=="Europe")

A tibble: 360 x 6
   country continent  year lifeExp     pop gdpPercap
   <fct>   <fct>     <int>   <dbl>   <int>     <dbl>
 1 Albania Europe     1952    55.2 1282697     1601.
 2 Albania Europe     1957    59.3 1476505     1942.
 3 Albania Europe     1962    64.8 1728137     2313.
 4 Albania Europe     1967    66.2 1984060     2760.
 5 Albania Europe     1972    67.7 2263554     3313.
 6 Albania Europe     1977    68.9 2509048     3533.
 7 Albania Europe     1982    70.4 2780097     3631.
 8 Albania Europe     1987    72   3075321     3739.
 9 Albania Europe     1992    71.6 3326498     2497.
10 Albania Europe     1997    73.0 3428038     3193.

gapminder %>% filter(continent=="Europe") %>% arrange(desc(lifeExp))

A tibble: 360 x 6
   country     continent  year lifeExp      pop gdpPercap
   <fct>       <fct>     <int>   <dbl>    <int>     <dbl>
 1 Iceland     Europe     2007    81.8   301931    36181.
 2 Switzerland Europe     2007    81.7  7554661    37506.
 3 Spain       Europe     2007    80.9 40448191    28821.
 4 Sweden      Europe     2007    80.9  9031088    33860.
 5 France      Europe     2007    80.7 61083916    30470.
 6 Switzerland Europe     2002    80.6  7361757    34481.
 7 Italy       Europe     2007    80.5 58147733    28570.
 8 Iceland     Europe     2002    80.5   288030    31163.
 9 Italy       Europe     2002    80.2 57926999    27968.
10 Norway      Europe     2007    80.2  4627926    49357.

hence 2007 is highest lifeExp in Europe


Related Solutions

How to find the day of the highest and lowest temperatures? And how to find an...
How to find the day of the highest and lowest temperatures? And how to find an average of high and low temperatures? C language
Which of the following returns will give you the highest dollar amount after 6 years? 49%...
Which of the following returns will give you the highest dollar amount after 6 years? 49% total return 6.9% annual return 3.4% semiannual return 0.55% monthly return
Which of the following has the highest Present Value? Select one: a. $1,200/yr. for 10 years...
Which of the following has the highest Present Value? Select one: a. $1,200/yr. for 10 years discounted at 10%. b. $1,200/yr. for 10 years discounted at 8%. c. $1,000/yr. for 10 years discounted at 10%. d. $1,000/yr. for 10 years discounted at 8%. e. $1,200/yr. for 12 years discounted at 8%.
which stocks are the highest yielding to invest in?
which stocks are the highest yielding to invest in?
a) With lockdowns currently imposed across Europe and North America until mid-April, even in the best-case...
a) With lockdowns currently imposed across Europe and North America until mid-April, even in the best-case scenario it will take at least until mid-June for market confidence to be restored in these economies. The implication is that nearly six million workers in Bangladesh’s formal sector – which is largely manufacturing – will be without steady work for an extended period. Which part of the production function do you think the issue mentioned above will affect? Draw two diagrams to show...
Question 2 (IAS 21) (25 marks) Sugar Limited is a mining company operating across Europe and...
Question 2 (IAS 21) Sugar Limited is a mining company operating across Europe and the Middle East. Sugar’s functional currency is the Euro (€). On 25th March 2015, the directors came across classified information regarding the discovery of diamonds in Guatemala. Sugar Limited approached the two main banks in Guatemala, Barclays Bank and Standard Bank, for a loan that would fund a start-up mine in the area. The local currency in Guatemala is the Guatemalan Guenzel (G). Barclays bank offered...
Continental Power (CP) builds and operates renewable energy generation facilities across Europe. It is considering expanding...
Continental Power (CP) builds and operates renewable energy generation facilities across Europe. It is considering expanding its business into a number of developing countries. This expansion would require large capital investments which CP would prefer to finance using debt. CP’s corporate finance advisors believe that the company could not issue additional debt without significantly impacting its credit rating. These projects are generally of a finite life and require little ongoing capital investment once operating. CP is concerned about the impact...
Find the voltage ΔV1 across the first capacitor.
Find the voltage ΔV1 across the first capacitor. Express your answer in terms of ΔV. Find the charge Q on the first capacitor. Express your answer in terms of C and ΔV1. Using the value of Q just calculated, find the equivalent capacitance Ceq for this combination of capacitors in series. Express your answer in terms of C.
Coloplast is ~10 years old in the U.S. but is widely known in Europe and is...
Coloplast is ~10 years old in the U.S. but is widely known in Europe and is a well-respected, 65 year old Danish company. Coloplast has a medical device implant (product) that is used for elective procedures that is considered extremely safe, highly effective and easy to use. Coloplast has a 30% market share in the U.S., and 25% market share outside of the U.S., where the prices are lower (by half) but the market grows 3X faster as the U.S....
Suppose that real interest rates decrease across Europe. This development will (Increase/Decrease) U.S. net capital outflow...
Suppose that real interest rates decrease across Europe. This development will (Increase/Decrease) U.S. net capital outflow at all U.S. real interest rates, which in turn will cause the (Demand for/Supply of) loanable funds to (Increase/Decrease) because net capital outflow is a component of the relevant curve in the loanable funds market.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT