Perla Molina & Ailin Wu
happiness2020 %>%
select(Country.name,Ladder.score) %>%
arrange(desc(Ladder.score)) %>%
slice_head()
## Country.name Ladder.score
## 1 Finland 7.8087
## Country.name Ladder.score
## 1 Afghanistan 2.5669
happiness2020 %>%
select(Country.name,Logged.GDP.per.capita) %>%
arrange(desc(Logged.GDP.per.capita)) %>%
slice_head()
## Country.name Logged.GDP.per.capita
## 1 Luxembourg 11.45068
happiness2020 %>%
select(Country.name,Logged.GDP.per.capita) %>%
arrange(Logged.GDP.per.capita) %>%
slice_head()
## Country.name Logged.GDP.per.capita
## 1 Burundi 6.492642
Burundi is the least economically stable country of 2020.
happiness2020 %>%
select(Country.name,Social.support) %>%
arrange(desc(Social.support)) %>%
slice_head()
## Country.name Social.support
## 1 Iceland 0.9746696
## Country.name Social.support
## 1 Central African Republic 0.3194599
happiness2020 %>%
select(Country.name,Healthy.life.expectancy) %>%
arrange(desc(Healthy.life.expectancy)) %>%
slice_head()
## Country.name Healthy.life.expectancy
## 1 Singapore 76.80458
happiness2020 %>%
select(Country.name,Healthy.life.expectancy) %>%
arrange(Healthy.life.expectancy) %>%
slice_head()
## Country.name Healthy.life.expectancy
## 1 Central African Republic 45.2
happiness2020 %>%
select(Country.name,Freedom.to.make.life.choices) %>%
arrange(desc(Freedom.to.make.life.choices)) %>%
slice_head()
## Country.name Freedom.to.make.life.choices
## 1 Uzbekistan 0.9749981
happiness2020 %>%
select(Country.name,Freedom.to.make.life.choices) %>%
arrange(Freedom.to.make.life.choices) %>%
slice_head()
## Country.name Freedom.to.make.life.choices
## 1 Afghanistan 0.396573
## Country.name Generosity
## 1 Myanmar 0.560664
## Country.name Generosity
## 1 Greece -0.3009074
happiness2020 %>%
select(Country.name,Perceptions.of.corruption) %>%
arrange(desc(Perceptions.of.corruption)) %>%
slice_head()
## Country.name Perceptions.of.corruption
## 1 Bulgaria 0.9355851
happiness2020 %>%
select(Country.name,Perceptions.of.corruption) %>%
arrange(Perceptions.of.corruption) %>%
slice_head()
## Country.name Perceptions.of.corruption
## 1 Singapore 0.1097842
## Country.name Ladder.score
## 1 Finland 7.8087
## 2 Denmark 7.6456
## 3 Switzerland 7.5599
## 4 Iceland 7.5045
## 5 Norway 7.4880
## 6 Netherlands 7.4489
## 7 Sweden 7.3535
## 8 New Zealand 7.2996
## 9 Austria 7.2942
## 10 Luxembourg 7.2375
## 11 Canada 7.2321
## 12 Australia 7.2228
## 13 United Kingdom 7.1645
## 14 Israel 7.1286
## 15 Costa Rica 7.1214
## 16 Ireland 7.0937
## 17 Germany 7.0758
## Country.name Ladder.score
## 1 Sierra Leone 3.9264
## 2 Burundi 3.7753
## 3 Zambia 3.7594
## 4 Haiti 3.7208
## 5 Lesotho 3.6528
## 6 India 3.5733
## 7 Malawi 3.5380
## 8 Yemen 3.5274
## 9 Botswana 3.4789
## 10 Tanzania 3.4762
## 11 Central African Republic 3.4759
## 12 Rwanda 3.3123
## 13 Zimbabwe 3.2992
## 14 South Sudan 2.8166
## 15 Afghanistan 2.5669
## Country.name Healthy.life.expectancy
## 1 Ivory Coast 49.50377
## 2 Benin 54.31247
## 3 Cameroon 52.70494
## 4 Guinea 54.46780
## 5 Niger 53.50010
## 6 Burkina Faso 53.88945
## 7 Mali 51.72698
## 8 Nigeria 49.86191
## 9 Mozambique 54.20582
## 10 Chad 48.22054
## 11 Congo (Kinshasa) 52.90000
## 12 Swaziland 51.18824
## 13 Togo 54.71990
## 14 Sierra Leone 50.86514
## 15 Burundi 53.40000
## 16 Lesotho 48.00362
## 17 Central African Republic 45.20000
## 18 South Sudan 51.00000
## 19 Afghanistan 52.59000
## averageTitle averageNumber
## 1 Average Ladder Score 5.47323986
## 2 Average GDP per Capita 9.29570584
## 3 Average Social Support 0.80872107
## 4 Average Life Expectancy 64.44552917
## 5 Average Freedom to Make Life Choices 0.78336017
## 6 Average Generosity -0.01456831
## 7 Average Perceptions of Corruption 0.73312022