gapminder: Data from Gapminder

> library(gapminder)

バージョン: 0.2.0


関数名 概略
country_colors Gapminder color schemes.
gapminder Gapminder data.
gapminder_unfiltered Gapminder data, unfiltered.

country_colors

> country_colors %>% {
+   head(.) %>% print()
+   tail(.)
+ }
         Nigeria            Egypt         Ethiopia Congo, Dem. Rep. 
       "#7F3B08"        "#833D07"        "#873F07"        "#8B4107" 
    South Africa            Sudan 
       "#8F4407"        "#934607"
    Albania    Slovenia  Montenegro     Iceland   Australia New Zealand 
  "#D2ECB1"   "#D9EFBB"   "#DFF2C5"   "#E6F5D0"   "#313695"   "#4575B4"

gapminder

> gapminder %>% {
+   class(.) %>% print()
+   dplyr::glimpse(.)
+ }
[1] "tbl_df"     "tbl"        "data.frame"
Observations: 1,704
Variables: 6
$ country   (fctr) Afghanistan, Afghanistan, Afghanistan, Afghanistan,...
$ continent (fctr) Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asi...
$ year      (int) 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992...
$ lifeExp   (dbl) 28.801, 30.332, 31.997, 34.020, 36.088, 38.438, 39.8...
$ pop       (int) 8425333, 9240934, 10267083, 11537966, 13079460, 1488...
$ gdpPercap (dbl) 779.4453, 820.8530, 853.1007, 836.1971, 739.9811, 78...

gapminder_unfiltered

> gapminder_unfiltered %>% {
+   class(.) %>% print()
+   dplyr::glimpse(.)
+ }
[1] "tbl_df"     "tbl"        "data.frame"
Observations: 3,313
Variables: 6
$ country   (fctr) Afghanistan, Afghanistan, Afghanistan, Afghanistan,...
$ continent (fctr) Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asia, Asi...
$ year      (int) 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992...
$ lifeExp   (dbl) 28.801, 30.332, 31.997, 34.020, 36.088, 38.438, 39.8...
$ pop       (int) 8425333, 9240934, 10267083, 11537966, 13079460, 1488...
$ gdpPercap (dbl) 779.4453, 820.8530, 853.1007, 836.1971, 739.9811, 78...