babynames: US baby names 1880-2014

アメリカ合衆国の幼児の名前データ

> library(babynames)

バージョン: 0.2.1.9000


関数名 概略
applicants Applicants.
babynames Baby names.
births Births
lifetables Lifetables

applicants

年、性別、応募総数

> applicants %>% {
+   class(.) %>% print()
+   dplyr::glimpse(.)
+ }
[1] "tbl_df"     "tbl"        "data.frame"
Observations: 270
Variables: 3
$ year  (int) 1880, 1880, 1881, 1881, 1882, 1882, 1883, 1883, 1884, 18...
$ sex   (chr) "F", "M", "F", "M", "F", "M", "F", "M", "F", "M", "F", "...
$ n_all (dbl) 97605, 118400, 98856, 108284, 115698, 122033, 120064, 11...

babynames

乳児の名前

> babynames %>% {
+   class(.) %>% print()
+   dplyr::glimpse(.)
+ }
[1] "tbl_df"     "tbl"        "data.frame"
Observations: 1,825,433
Variables: 5
$ year (dbl) 1880, 1880, 1880, 1880, 1880, 1880, 1880, 1880, 1880, 188...
$ sex  (chr) "F", "F", "F", "F", "F", "F", "F", "F", "F", "F", "F", "F...
$ name (chr) "Mary", "Anna", "Emma", "Elizabeth", "Minnie", "Margaret"...
$ n    (int) 7065, 2604, 2003, 1939, 1746, 1578, 1472, 1414, 1320, 128...
$ prop (dbl) 0.072383587, 0.026678961, 0.020521490, 0.019865786, 0.017...

births

> names(births)
[1] "year"   "births"
> head(births)
Source: local data frame [6 x 2]

   year  births
  (int)   (dbl)
1  1909 2718000
2  1910 2777000
3  1911 2809000
4  1912 2840000
5  1913 2869000
6  1914 2966000
> dplyr::glimpse(births)
Observations: 104
Variables: 2
$ year   (int) 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1916, 1917, 1...
$ births (dbl) 2718000, 2777000, 2809000, 2840000, 2869000, 2966000, 2...

lifetables

> names(lifetables)
[1] "x"    "qx"   "lx"   "dx"   "Lx"   "Tx"   "ex"   "sex"  "year"
> head(lifetables)
Source: local data frame [6 x 9]

      x      qx     lx    dx    Lx      Tx    ex    sex  year
  (dbl)   (dbl)  (dbl) (dbl) (dbl)   (dbl) (dbl) (fctr) (dbl)
1     0 0.14596 100000 14596 90026 5151511 51.52      M  1900
2     1 0.03282  85404  2803 84003 5061484 59.26      M  1900
3     2 0.01634  82601  1350 81926 4977482 60.26      M  1900
4     3 0.01052  81251   855 80824 4895556 60.25      M  1900
5     4 0.00875  80397   703 80045 4814732 59.89      M  1900
6     5 0.00628  79693   501 79443 4734687 59.41      M  1900
> dplyr::glimpse(lifetables)
Observations: 2,880
Variables: 9
$ x    (dbl) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,...
$ qx   (dbl) 0.14596, 0.03282, 0.01634, 0.01052, 0.00875, 0.00628, 0.0...
$ lx   (dbl) 100000, 85404, 82601, 81251, 80397, 79693, 79193, 78827, ...
$ dx   (dbl) 14596, 2803, 1350, 855, 703, 501, 366, 257, 201, 159, 165...
$ Lx   (dbl) 90026, 84003, 81926, 80824, 80045, 79443, 79010, 78698, 7...
$ Tx   (dbl) 5151511, 5061484, 4977482, 4895556, 4814732, 4734687, 465...
$ ex   (dbl) 51.52, 59.26, 60.26, 60.25, 59.89, 59.41, 58.78, 58.05, 5...
$ sex  (fctr) M, M, M, M, M, M, M, M, M, M, M, M, M, M, M, M, M, M, M,...
$ year (dbl) 1900, 1900, 1900, 1900, 1900, 1900, 1900, 1900, 1900, 190...