#carga
idh = htmltab(doc = WhereIDH$page,
which = WhereIDH$xpath,
encoding = "UTF-8")
demo = htmltab(doc = WhereDEMO$page,
which = WhereDEMO$xpath,
encoding = "UTF-8")
names(idh)
## [1] "Rank >> 2021 data (2022 report)"
## [2] "Rank >> Change since 2015"
## [3] "Nation"
## [4] "HDI >> 2021 data (2022 report)"
## [5] "HDI >> Average annual growth (2010–2021)"
names(demo)
## [1] "Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [2] ".mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}Δ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [3] "Country >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [4] "Regime type >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [5] "Overall score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [6] "Δ Score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [7] "Electoral processand pluralism >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [8] "Functioningof government >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [9] "Politicalparticipation >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [10] "Politicalculture >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
## [11] "Civilliberties >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes"
idh[,]=lapply(idh[,], trimws,whitespace = "[\\h\\v]")
demo[,]=lapply(demo[,], trimws,whitespace = "[\\h\\v]")
str(idh)
## 'data.frame': 191 obs. of 5 variables:
## $ Rank >> 2021 data (2022 report) : chr "1" "2" "3" "4" ...
## $ Rank >> Change since 2015 : chr NA NA NA "(3)" ...
## $ Nation : chr "Switzerland" "Norway" "Iceland" "Hong Kong" ...
## $ HDI >> 2021 data (2022 report) : chr "0.962" "0.961" "0.959" "0.952" ...
## $ HDI >> Average annual growth (2010–2021): chr "0.19%" "0.19%" "0.56%" "0.44%" ...
str(demo)
## 'data.frame': 167 obs. of 11 variables:
## $ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "1" "2" "3" "4" ...
## $ .mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}Δ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes: chr NA NA "2" NA ...
## $ Country >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "Norway" "New Zealand" "Iceland" "Sweden" ...
## $ Regime type >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "Full democracy" "Full democracy" "Full democracy" "Full democracy" ...
## $ Overall score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "9.81" "9.61" "9.52" "9.39" ...
## $ Δ Score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "0.06" "0.14" "0.34" "0.13" ...
## $ Electoral processand pluralism >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "10.00" "10.00" "10.00" "9.58" ...
## $ Functioningof government >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "9.64" "9.29" "9.64" "9.64" ...
## $ Politicalparticipation >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "10.00" "10.00" "8.89" "8.33" ...
## $ Politicalculture >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "10.00" "8.75" "9.38" "10.00" ...
## $ Civilliberties >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr "9.41" "10.00" "9.71" "9.41" ...
# ahora a numerico
idh[3:5]=lapply(idh[3:5], as.numeric)
## Warning in lapply(idh[3:5], as.numeric): NAs introducidos por coerción
## Warning in lapply(idh[3:5], as.numeric): NAs introducidos por coerción
# ahora a numerico
demo[5:11]=lapply(demo[5:11], as.numeric)
idh[!complete.cases(idh),]
## Rank >> 2021 data (2022 report) Rank >> Change since 2015 Nation
## 3 1 <NA> NA
## 4 2 <NA> NA
## 5 3 <NA> NA
## 6 4 (3) NA
## 7 5 (3) NA
## 8 6 <NA> NA
## 9 7 (2) NA
## 10 8 (6) NA
## 11 9 (5) NA
## 12 10 (1) NA
## 13 11 <NA> NA
## 14 12 (1) NA
## 15 13 (2) NA
## 16 13 (3) NA
## 17 15 (2) NA
## 18 16 (1) NA
## 19 17 (3) NA
## 20 18 (3) NA
## 21 19 <NA> NA
## 22 19 (3) NA
## 23 21 (3) NA
## 24 22 <NA> NA
## 25 23 (4) NA
## 26 23 (1) NA
## 27 25 (4) NA
## 28 26 (9) NA
## 29 27 <NA> NA
## 30 28 (3) NA
## 31 29 (3) NA
## 32 30 (1) NA
## 33 31 (2) NA
## 34 32 (6) NA
## 35 33 (2) NA
## 36 34 (1) NA
## 37 35 (3) NA
## 38 35 (1) NA
## 39 35 (2) NA
## 40 38 (2) NA
## 41 39 (1) NA
## 42 40 (6) NA
## 43 40 (5) NA
## 44 42 (1) NA
## 45 42 (1) NA
## 46 44 NA NA
## 47 45 (5) NA
## 48 46 (1) NA
## 49 47 (4) NA
## 50 48 (6) NA
## 51 49 (3) NA
## 52 50 (1) NA
## 53 51 (3) NA
## 54 52 (2) NA
## 55 53 (4) NA
## 56 54 (3) NA
## 57 55 (2) NA
## 58 56 (4) NA
## 59 57 (2) NA
## 60 58 (4) NA
## 61 58 <NA> NA
## 62 60 (3) NA
## 63 61 <NA> NA
## 64 62 (1) NA
## 65 63 (7) NA
## 66 63 (2) NA
## 67 63 (4) NA
## 68 66 (6) NA
## 69 67 (2) NA
## 70 68 (9) NA
## 71 68 (2) NA
## 72 70 (2) NA
## 73 71 (3) NA
## 74 72 (8) NA
## 75 73 (9) NA
## 76 74 (10) NA
## 77 75 (2) NA
## 78 76 (2) NA
## 79 77 (2) NA
## 80 78 (5) NA
## 81 79 (19) NA
## 82 80 (16) NA
## 83 80 (9) NA
## 84 80 (7) NA
## 85 83 (7) NA
## 86 84 (1) NA
## 87 85 (5) NA
## 88 86 (8) NA
## 89 87 (1) NA
## 90 88 (1) NA
## 91 89 (4) NA
## 92 90 (6) NA
## 93 91 (2) NA
## 94 91 (1) NA
## 95 91 (10) NA
## 96 91 (2) NA
## 97 95 (14) NA
## 98 96 (4) NA
## 99 97 (13) NA
## 100 97 (1) NA
## 101 99 (3) NA
## 102 99 (7) NA
## 103 101 (11) NA
## 104 102 (11) NA
## 105 102 (2) NA
## 106 104 (10) NA
## 107 105 (2) NA
## 108 106 (2) NA
## 109 106 (11) NA
## 110 108 (12) NA
## 111 109 (4) NA
## 112 110 (3) NA
## 113 111 (6) NA
## 114 112 (2) NA
## 115 112 (21) NA
## 116 114 (3) NA
## 117 115 (5) NA
## 118 116 <NA> NA
## 119 117 (6) NA
## 120 118 <NA> NA
## 121 118 <NA> NA
## 122 120 (41) NA
## 123 121 (1) NA
## 124 122 (3) NA
## 125 123 (14) NA
## 126 123 (3) NA
## 127 125 (2) NA
## 128 126 (1) NA
## 129 127 (6) NA
## 130 128 (4) NA
## 131 129 (11) NA
## 132 130 (2) NA
## 133 131 (1) NA
## 134 132 (1) NA
## 135 133 (5) NA
## 136 134 <NA> NA
## 137 135 (6) NA
## 138 136 (1) NA
## 139 137 <NA> NA
## 140 138 (4) NA
## 141 139 (7) NA
## 142 140 (1) NA
## 143 140 (4) NA
## 144 140 (3) NA
## 145 143 (4) NA
## 146 144 (4) NA
## 147 145 (6) NA
## 148 146 (3) NA
## 149 146 (1) NA
## 150 148 (3) NA
## 151 149 (1) NA
## 152 150 (5) NA
## 153 151 (2) NA
## 154 152 <NA> NA
## 155 153 (9) NA
## 156 154 (4) NA
## 157 155 (1) NA
## 158 156 <NA> NA
## 159 156 (2) NA
## 160 158 (2) NA
## 161 159 (8) NA
## 162 160 (2) NA
## 163 161 (2) NA
## 164 162 (4) NA
## 165 163 (3) NA
## 166 163 (1) NA
## 167 165 <NA> NA
## 168 166 (6) NA
## 169 166 (3) NA
## 170 168 (3) NA
## 171 169 (4) NA
## 172 170 (1) NA
## 173 171 (1) NA
## 174 172 (4) NA
## 175 173 (3) NA
## 176 174 (1) NA
## 177 175 (6) NA
## 178 176 (2) NA
## 179 177 (2) NA
## 180 178 <NA> NA
## 181 179 (1) NA
## 182 180 (5) NA
## 183 181 (1) NA
## 184 182 (1) NA
## 185 183 (6) NA
## 186 184 (2) NA
## 187 185 (2) NA
## 188 186 (1) NA
## 189 187 (2) NA
## 190 188 (2) NA
## 191 189 (2) NA
## 192 190 (1) NA
## 193 191 (3) NA
## HDI >> 2021 data (2022 report) HDI >> Average annual growth (2010–2021)
## 3 0.962 NA
## 4 0.961 NA
## 5 0.959 NA
## 6 0.952 NA
## 7 0.951 NA
## 8 0.948 NA
## 9 0.947 NA
## 10 0.945 NA
## 11 0.942 NA
## 12 0.941 NA
## 13 0.940 NA
## 14 0.939 NA
## 15 0.937 NA
## 16 0.937 NA
## 17 0.936 NA
## 18 0.935 NA
## 19 0.930 NA
## 20 0.929 NA
## 21 0.925 NA
## 22 0.925 NA
## 23 0.921 NA
## 24 0.919 NA
## 25 0.918 NA
## 26 0.918 NA
## 27 0.916 NA
## 28 0.911 NA
## 29 0.905 NA
## 30 0.903 NA
## 31 0.896 NA
## 32 0.895 NA
## 33 0.890 NA
## 34 0.889 NA
## 35 0.887 NA
## 36 0.876 NA
## 37 0.875 NA
## 38 0.875 NA
## 39 0.875 NA
## 40 0.866 NA
## 41 0.863 NA
## 42 0.858 NA
## 43 0.858 NA
## 44 0.855 NA
## 45 0.855 NA
## 46 0.853 NA
## 47 0.848 NA
## 48 0.846 NA
## 49 0.842 NA
## 50 0.838 NA
## 51 0.832 NA
## 52 0.831 NA
## 53 0.829 NA
## 54 0.822 NA
## 55 0.821 NA
## 56 0.816 NA
## 57 0.812 NA
## 58 0.811 NA
## 59 0.810 NA
## 60 0.809 NA
## 61 0.809 NA
## 62 0.808 NA
## 63 0.805 NA
## 64 0.803 NA
## 65 0.802 NA
## 66 0.802 NA
## 67 0.802 NA
## 68 0.800 NA
## 69 0.796 NA
## 70 0.795 NA
## 71 0.795 NA
## 72 0.790 NA
## 73 0.788 NA
## 74 0.785 NA
## 75 0.782 NA
## 76 0.780 NA
## 77 0.777 NA
## 78 0.774 NA
## 79 0.773 NA
## 80 0.770 NA
## 81 0.768 NA
## 82 0.767 NA
## 83 0.767 NA
## 84 0.767 NA
## 85 0.764 NA
## 86 0.762 NA
## 87 0.759 NA
## 88 0.758 NA
## 89 0.754 NA
## 90 0.752 NA
## 91 0.751 NA
## 92 0.747 NA
## 93 0.745 NA
## 94 0.745 NA
## 95 0.745 NA
## 96 0.745 NA
## 97 0.740 NA
## 98 0.739 NA
## 99 0.731 NA
## 100 0.731 NA
## 101 0.730 NA
## 102 0.730 NA
## 103 0.727 NA
## 104 0.720 NA
## 105 0.720 NA
## 106 0.718 NA
## 107 0.717 NA
## 108 0.715 NA
## 109 0.715 NA
## 110 0.714 NA
## 111 0.713 NA
## 112 0.709 NA
## 113 0.707 NA
## 114 0.706 NA
## 115 0.706 NA
## 116 0.705 NA
## 117 0.703 NA
## 118 0.699 NA
## 119 0.693 NA
## 120 0.692 NA
## 121 0.692 NA
## 122 0.691 NA
## 123 0.686 NA
## 124 0.685 NA
## 125 0.683 NA
## 126 0.683 NA
## 127 0.675 NA
## 128 0.667 NA
## 129 0.666 NA
## 130 0.662 NA
## 131 0.661 NA
## 132 0.641 NA
## 133 0.639 NA
## 134 0.633 NA
## 135 0.632 NA
## 136 0.628 NA
## 137 0.627 NA
## 138 0.624 NA
## 139 0.621 NA
## 140 0.618 NA
## 141 0.615 NA
## 142 0.607 NA
## 143 0.607 NA
## 144 0.607 NA
## 145 0.602 NA
## 146 0.597 NA
## 147 0.596 NA
## 148 0.593 NA
## 149 0.593 NA
## 150 0.586 NA
## 151 0.585 NA
## 152 0.577 NA
## 153 0.576 NA
## 154 0.575 NA
## 155 0.571 NA
## 156 0.565 NA
## 157 0.564 NA
## 158 0.558 NA
## 159 0.558 NA
## 160 0.556 NA
## 161 0.550 NA
## 162 0.549 NA
## 163 0.544 NA
## 164 0.539 NA
## 165 0.535 NA
## 166 0.535 NA
## 167 0.534 NA
## 168 0.525 NA
## 169 0.525 NA
## 170 0.514 NA
## 171 0.512 NA
## 172 0.511 NA
## 173 0.509 NA
## 174 0.508 NA
## 175 0.501 NA
## 176 0.500 NA
## 177 0.498 NA
## 178 0.492 NA
## 179 0.483 NA
## 180 0.481 NA
## 181 0.479 NA
## 182 0.478 NA
## 183 0.477 NA
## 184 0.465 NA
## 185 0.455 NA
## 186 0.449 NA
## 187 0.446 NA
## 188 0.428 NA
## 189 0.426 NA
## 190 0.404 NA
## 191 0.400 NA
## 192 0.394 NA
## 193 0.385 NA
demo[!complete.cases(demo),]
## Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 1
## 4 2
## 6 4
## 8 6
## 12 10
## 14 12
## 20 18
## 22 20
## 24 22
## 30 27
## 31 28
## 33 30
## 35 32
## 36 33
## 38 35
## 39 36
## 40 37
## 41 38
## 44 41
## 45 42
## 47 44
## 48 45
## 49 46
## 53 50
## 57 54
## 59 56
## 61 58
## 62 59
## 65 61
## 72 69
## 77 73
## 81 77
## 84 80
## 85 81
## 90 86
## 96 92
## 98 94
## 99 95
## 105 101
## 107 103
## 110 106
## 112 108
## 118 113
## 119 114
## 121 116
## 122 117
## 123 118
## 124 119
## 125 120
## 131 126
## 133 127
## 136 131
## 137 132
## 138 133
## 141 136
## 142 137
## 145 140
## 147 142
## 149 144
## 153 148
## 154 149
## 155 150
## 157 152
## 159 154
## 160 155
## 162 156
## 163 158
## 164 159
## 165 160
## 166 161
## 168 163
## 170 165
## 171 166
## 172 167
## .mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}Δ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 <NA>
## 4 <NA>
## 6 <NA>
## 8 <NA>
## 12 2
## 14 <NA>
## 20 <NA>
## 22 <NA>
## 24 <NA>
## 30 <NA>
## 31 <NA>
## 33 4
## 35 2
## 36 <NA>
## 38 3
## 39 <NA>
## 40 <NA>
## 41 <NA>
## 44 <NA>
## 45 <NA>
## 47 1
## 48 1
## 49 <NA>
## 53 <NA>
## 57 2
## 59 <NA>
## 61 3
## 62 3
## 65 <NA>
## 72 <NA>
## 77 2
## 81 <NA>
## 84 3
## 85 <NA>
## 90 4
## 96 <NA>
## 98 <NA>
## 99 <NA>
## 105 <NA>
## 107 <NA>
## 110 1
## 112 <NA>
## 118 <NA>
## 119 <NA>
## 121 1
## 122 1
## 123 3
## 124 <NA>
## 125 6
## 131 1
## 133 1
## 136 1
## 137 1
## 138 1
## 141 1
## 142 2
## 145 3
## 147 2
## 149 1
## 153 1
## 154 1
## 155 2
## 157 1
## 159 <NA>
## 160 1
## 162 1
## 163 <NA>
## 164 <NA>
## 165 <NA>
## 166 <NA>
## 168 1
## 170 <NA>
## 171 <NA>
## 172 <NA>
## Country >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 Norway
## 4 New Zealand
## 6 Sweden
## 8 Denmark
## 12 Taiwan
## 14 Canada
## 20 United Kingdom
## 22 Austria
## 24 France
## 30 Estonia
## 31 Portugal
## 33 United States
## 35 Botswana
## 36 Malta
## 38 Cape Verde
## 39 Belgium
## 40 Cyprus
## 41 Latvia
## 44 Trinidad and Tobago
## 45 Jamaica
## 47 East Timor
## 48 South Africa
## 49 India
## 53 Argentina
## 57 Indonesia
## 59 Hungary
## 61 Namibia
## 62 Croatia
## 65 Romania
## 72 Moldova
## 77 Bangladesh
## 81 Paraguay
## 84 Madagascar
## 85 Ecuador
## 90 Liberia
## 96 Tanzania
## 98 Kenya
## 99 Morocco
## 105 Nepal
## 107 Turkey
## 110 Ivory Coast
## 112 Mauritania
## 118 Algeria
## 119 Qatar
## 121 Kyrgyzstan
## 122 Mozambique
## 123 Gabon
## 124 Mali
## 125 Comoros
## 131 Rwanda
## 133 Kazakhstan
## 136 Egypt
## 137 Zimbabwe
## 138 United Arab Emirates
## 141 Republic of the Congo
## 142 Djibouti
## 145 Cameroon
## 147 Bahrain
## 149 Sudan
## 153 Burundi
## 154 Uzbekistan
## 155 Saudi Arabia
## 157 Eritrea
## 159 Iran
## 160 Yemen
## 162 Tajikistan
## 163 Equatorial Guinea
## 164 Laos
## 165 Chad
## 166 Turkmenistan
## 168 Syria
## 170 North Korea
## 171 Myanmar
## 172 Afghanistan
## Regime type >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 Full democracy
## 4 Full democracy
## 6 Full democracy
## 8 Full democracy
## 12 Full democracy
## 14 Full democracy
## 20 Full democracy
## 22 Full democracy
## 24 Full democracy
## 30 Flawed democracy
## 31 Flawed democracy
## 33 Flawed democracy
## 35 Flawed democracy
## 36 Flawed democracy
## 38 Flawed democracy
## 39 Flawed democracy
## 40 Flawed democracy
## 41 Flawed democracy
## 44 Flawed democracy
## 45 Flawed democracy
## 47 Flawed democracy
## 48 Flawed democracy
## 49 Flawed democracy
## 53 Flawed democracy
## 57 Flawed democracy
## 59 Flawed democracy
## 61 Flawed democracy
## 62 Flawed democracy
## 65 Flawed democracy
## 72 Flawed democracy
## 77 Hybrid regime
## 81 Hybrid regime
## 84 Hybrid regime
## 85 Hybrid regime
## 90 Hybrid regime
## 96 Hybrid regime
## 98 Hybrid regime
## 99 Hybrid regime
## 105 Hybrid regime
## 107 Hybrid regime
## 110 Hybrid regime
## 112 Hybrid regime
## 118 Authoritarian
## 119 Authoritarian
## 121 Authoritarian
## 122 Authoritarian
## 123 Authoritarian
## 124 Authoritarian
## 125 Authoritarian
## 131 Authoritarian
## 133 Authoritarian
## 136 Authoritarian
## 137 Authoritarian
## 138 Authoritarian
## 141 Authoritarian
## 142 Authoritarian
## 145 Authoritarian
## 147 Authoritarian
## 149 Authoritarian
## 153 Authoritarian
## 154 Authoritarian
## 155 Authoritarian
## 157 Authoritarian
## 159 Authoritarian
## 160 Authoritarian
## 162 Authoritarian
## 163 Authoritarian
## 164 Authoritarian
## 165 Authoritarian
## 166 Authoritarian
## 168 Authoritarian
## 170 Authoritarian
## 171 Authoritarian
## 172 Authoritarian
## Overall score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 9.81
## 4 9.61
## 6 9.39
## 8 9.28
## 12 8.99
## 14 8.88
## 20 8.28
## 22 8.20
## 24 8.07
## 30 7.96
## 31 7.95
## 33 7.85
## 35 7.73
## 36 7.70
## 38 7.65
## 39 7.64
## 40 7.38
## 41 7.37
## 44 7.16
## 45 7.13
## 47 7.06
## 48 7.05
## 49 7.04
## 53 6.85
## 57 6.71
## 59 6.64
## 61 6.52
## 62 6.50
## 65 6.45
## 72 6.23
## 77 5.99
## 81 5.89
## 84 5.70
## 85 5.69
## 90 5.43
## 96 5.10
## 98 5.05
## 99 5.04
## 105 4.49
## 107 4.35
## 110 4.22
## 112 4.03
## 118 3.66
## 119 3.65
## 121 3.62
## 122 3.51
## 123 3.40
## 124 3.23
## 125 3.20
## 131 3.10
## 133 3.08
## 136 2.93
## 137 2.92
## 138 2.90
## 141 2.79
## 142 2.74
## 145 2.56
## 147 2.52
## 149 2.47
## 153 2.13
## 154 2.12
## 155 2.08
## 157 2.03
## 159 1.96
## 160 1.95
## 162 1.94
## 163 1.92
## 164 1.77
## 165 1.67
## 166 1.66
## 168 1.43
## 170 1.08
## 171 0.74
## 172 0.32
## Δ Score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 0.06
## 4 0.14
## 6 0.13
## 8 0.19
## 12 NA
## 14 0.01
## 20 0.18
## 22 0.13
## 24 0.08
## 30 0.12
## 31 0.13
## 33 NA
## 35 NA
## 36 0.13
## 38 NA
## 39 0.13
## 40 0.05
## 41 0.06
## 44 NA
## 45 NA
## 47 NA
## 48 NA
## 49 0.13
## 53 NA
## 57 NA
## 59 0.14
## 61 NA
## 62 NA
## 65 0.02
## 72 0.13
## 77 NA
## 81 0.03
## 84 NA
## 85 0.02
## 90 NA
## 96 NA
## 98 NA
## 99 NA
## 105 0.08
## 107 NA
## 110 NA
## 112 NA
## 118 0.11
## 119 NA
## 121 NA
## 122 NA
## 123 NA
## 124 0.25
## 125 NA
## 131 NA
## 133 NA
## 136 NA
## 137 NA
## 138 NA
## 141 NA
## 142 NA
## 145 NA
## 147 NA
## 149 NA
## 153 NA
## 154 NA
## 155 NA
## 157 NA
## 159 0.25
## 160 NA
## 162 NA
## 163 NA
## 164 NA
## 165 NA
## 166 NA
## 168 NA
## 170 NA
## 171 0.28
## 172 NA
## Electoral processand pluralism >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 10.00
## 4 10.00
## 6 9.58
## 8 10.00
## 12 10.00
## 14 10.00
## 20 9.58
## 22 9.58
## 24 9.58
## 30 9.58
## 31 9.58
## 33 9.17
## 35 9.17
## 36 9.17
## 38 9.17
## 39 9.58
## 40 9.17
## 41 9.58
## 44 9.58
## 45 8.75
## 47 9.58
## 48 7.42
## 49 8.67
## 53 9.17
## 57 7.92
## 59 8.33
## 61 7.00
## 62 9.17
## 65 9.17
## 72 7.42
## 77 7.42
## 81 8.75
## 84 7.92
## 85 8.75
## 90 7.42
## 96 4.83
## 98 3.50
## 99 5.25
## 105 4.83
## 107 3.50
## 110 4.33
## 112 3.50
## 118 3.08
## 119 1.50
## 121 4.33
## 122 2.58
## 123 2.17
## 124 1.17
## 125 2.08
## 131 1.42
## 133 0.50
## 136 1.33
## 137 0.00
## 138 0.00
## 141 0.00
## 142 0.00
## 145 0.33
## 147 0.42
## 149 0.00
## 153 0.00
## 154 0.08
## 155 0.00
## 157 0.00
## 159 0.00
## 160 0.00
## 162 0.00
## 163 0.00
## 164 0.00
## 165 0.00
## 166 0.00
## 168 0.00
## 170 0.00
## 171 0.00
## 172 0.00
## Functioningof government >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 9.64
## 4 9.29
## 6 9.64
## 8 9.29
## 12 9.64
## 14 8.57
## 20 7.50
## 22 7.14
## 24 7.86
## 30 7.86
## 31 7.50
## 33 6.43
## 35 6.79
## 36 7.14
## 38 7.00
## 39 8.21
## 40 5.36
## 41 6.07
## 44 7.14
## 45 7.14
## 47 5.93
## 48 7.14
## 49 7.50
## 53 5.00
## 57 7.86
## 59 6.79
## 61 5.36
## 62 6.07
## 65 6.43
## 72 5.36
## 77 6.07
## 81 5.36
## 84 3.57
## 85 5.00
## 90 2.71
## 96 5.00
## 98 5.36
## 99 4.64
## 105 5.36
## 107 5.00
## 110 2.86
## 112 3.57
## 118 2.50
## 119 4.29
## 121 1.50
## 122 1.43
## 123 1.86
## 124 0.00
## 125 2.21
## 131 4.29
## 133 3.21
## 136 3.21
## 137 2.50
## 138 4.29
## 141 2.50
## 142 1.29
## 145 2.14
## 147 2.71
## 149 1.43
## 153 0.00
## 154 1.86
## 155 3.57
## 157 2.14
## 159 2.50
## 160 0.00
## 162 2.21
## 163 0.43
## 164 2.86
## 165 0.00
## 166 0.79
## 168 0.00
## 170 2.50
## 171 0.00
## 172 0.07
## Politicalparticipation >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 10.00
## 4 10.00
## 6 8.33
## 8 8.33
## 12 7.78
## 14 8.89
## 20 8.33
## 22 8.89
## 24 7.78
## 30 6.67
## 31 6.67
## 33 8.89
## 35 6.67
## 36 5.56
## 38 6.67
## 39 5.00
## 40 6.67
## 41 6.11
## 44 6.11
## 45 5.00
## 47 5.56
## 48 8.33
## 49 7.22
## 53 7.78
## 57 7.22
## 59 4.44
## 61 6.67
## 62 6.11
## 65 5.56
## 72 7.22
## 77 5.56
## 81 6.11
## 84 6.67
## 85 6.67
## 90 6.11
## 96 5.00
## 98 6.67
## 99 5.56
## 105 4.44
## 107 5.56
## 110 4.44
## 112 5.56
## 118 3.89
## 119 3.33
## 121 4.44
## 122 5.00
## 123 4.44
## 124 5.56
## 125 4.44
## 131 2.78
## 133 5.00
## 136 3.33
## 137 3.89
## 138 2.22
## 141 4.44
## 142 4.44
## 145 3.89
## 147 3.33
## 149 4.44
## 153 3.89
## 154 2.78
## 155 2.22
## 157 0.56
## 159 3.33
## 160 3.89
## 162 2.22
## 163 3.33
## 164 1.67
## 165 2.22
## 166 2.22
## 168 2.78
## 170 1.67
## 171 0.56
## 172 0.00
## Politicalculture >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 10.00
## 4 8.75
## 6 10.00
## 8 9.38
## 12 8.13
## 14 8.13
## 20 6.88
## 22 6.88
## 24 6.88
## 30 6.88
## 31 6.88
## 33 6.25
## 35 7.50
## 36 8.13
## 38 6.88
## 39 6.88
## 40 6.88
## 41 6.25
## 44 5.63
## 45 6.25
## 47 6.88
## 48 5.00
## 49 5.63
## 53 4.38
## 57 4.38
## 59 6.88
## 61 5.63
## 62 4.38
## 65 3.75
## 72 4.38
## 77 5.63
## 81 1.88
## 84 5.63
## 85 1.88
## 90 5.63
## 96 6.25
## 98 5.63
## 99 5.63
## 105 2.50
## 107 5.63
## 110 5.63
## 112 3.13
## 118 5.00
## 119 5.63
## 121 3.13
## 122 5.00
## 123 5.00
## 124 5.63
## 125 3.75
## 131 4.38
## 133 3.75
## 136 5.00
## 137 5.00
## 138 5.63
## 141 3.75
## 142 5.63
## 145 4.38
## 147 4.38
## 149 5.00
## 153 5.00
## 154 5.00
## 155 3.13
## 157 6.88
## 159 2.50
## 160 5.00
## 162 4.38
## 163 4.38
## 164 3.75
## 165 3.75
## 166 5.00
## 168 4.38
## 170 1.25
## 171 3.13
## 172 1.25
## Civilliberties >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 3 9.41
## 4 10.00
## 6 9.41
## 8 9.41
## 12 9.41
## 14 8.82
## 20 9.12
## 22 8.53
## 24 8.24
## 30 8.82
## 31 9.12
## 33 8.53
## 35 8.53
## 36 8.53
## 38 8.53
## 39 8.53
## 40 8.82
## 41 8.82
## 44 7.35
## 45 8.53
## 47 7.35
## 48 7.35
## 49 6.18
## 53 7.94
## 57 6.18
## 59 6.76
## 61 7.94
## 62 6.76
## 65 7.35
## 72 6.76
## 77 5.29
## 81 7.35
## 84 4.71
## 85 6.18
## 90 5.29
## 96 4.41
## 98 4.12
## 99 4.12
## 105 5.29
## 107 2.06
## 110 3.82
## 112 4.41
## 118 3.82
## 119 3.53
## 121 4.71
## 122 3.53
## 123 3.53
## 124 3.82
## 125 3.53
## 131 2.65
## 133 2.94
## 136 1.76
## 137 3.24
## 138 2.35
## 141 3.24
## 142 2.35
## 145 2.06
## 147 1.76
## 149 1.47
## 153 1.76
## 154 0.88
## 155 1.47
## 157 0.59
## 159 1.47
## 160 0.88
## 162 0.88
## 163 1.47
## 164 0.59
## 165 2.35
## 166 0.29
## 168 0.00
## 170 0.00
## 171 0.00
## 172 0.29
idhdemo=merge(idh,demo)
head(idhdemo)
## Rank >> 2021 data (2022 report) Rank >> Change since 2015 Nation
## 1 1 <NA> NA
## 2 2 <NA> NA
## 3 3 <NA> NA
## 4 4 (3) NA
## 5 5 (3) NA
## 6 6 <NA> NA
## HDI >> 2021 data (2022 report) HDI >> Average annual growth (2010–2021)
## 1 0.962 NA
## 2 0.961 NA
## 3 0.959 NA
## 4 0.952 NA
## 5 0.951 NA
## 6 0.948 NA
## Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 1
## 2 1
## 3 1
## 4 1
## 5 1
## 6 1
## .mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}Δ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 <NA>
## 2 <NA>
## 3 <NA>
## 4 <NA>
## 5 <NA>
## 6 <NA>
## Country >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 Norway
## 2 Norway
## 3 Norway
## 4 Norway
## 5 Norway
## 6 Norway
## Regime type >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 Full democracy
## 2 Full democracy
## 3 Full democracy
## 4 Full democracy
## 5 Full democracy
## 6 Full democracy
## Overall score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 9.81
## 2 9.81
## 3 9.81
## 4 9.81
## 5 9.81
## 6 9.81
## Δ Score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 0.06
## 2 0.06
## 3 0.06
## 4 0.06
## 5 0.06
## 6 0.06
## Electoral processand pluralism >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 10
## 2 10
## 3 10
## 4 10
## 5 10
## 6 10
## Functioningof government >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 9.64
## 2 9.64
## 3 9.64
## 4 9.64
## 5 9.64
## 6 9.64
## Politicalparticipation >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 10
## 2 10
## 3 10
## 4 10
## 5 10
## 6 10
## Politicalculture >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 10
## 2 10
## 3 10
## 4 10
## 5 10
## 6 10
## Civilliberties >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes
## 1 9.41
## 2 9.41
## 3 9.41
## 4 9.41
## 5 9.41
## 6 9.41
idhdemo = na.omit(idhdemo)
str(idhdemo)
## 'data.frame': 0 obs. of 16 variables:
## $ Rank >> 2021 data (2022 report) : chr
## $ Rank >> Change since 2015 : chr
## $ Nation : num
## $ HDI >> 2021 data (2022 report) : num
## $ HDI >> Average annual growth (2010–2021) : num
## $ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr
## $ .mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}Δ Rank >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes: chr
## $ Country >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr
## $ Regime type >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : chr
## $ Overall score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Δ Score >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Electoral processand pluralism >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Functioningof government >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Politicalparticipation >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Politicalculture >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## $ Civilliberties >> Full democracies >> Flawed democracies >> Hybrid regimes >> Authoritarian regimes : num
## - attr(*, "na.action")= 'omit' Named int [1:31897] 1 2 3 4 5 6 7 8 9 10 ...
## ..- attr(*, "names")= chr [1:31897] "1" "2" "3" "4" ...
#EJERCICIO 2
#EJERCICIO 3