fueleconomy: EPA fuel economy data
- CRAN: http://cran.r-project.org/web/packages/fueleconomy/index.html
- GitHub: http://github.com/hadley/fueleconomy
> library(fueleconomy)
バージョン: 0.1
関数名 | 概略 |
---|---|
common |
Common models |
vehicles |
Vehicle data |
common
> common %>% {
+ class(.) %>% print()
+ dplyr::glimpse(.)
+ }
[1] "grouped_df" "tbl_df" "tbl" "data.frame"
Observations: 347
Variables: 4
$ make (chr) "Acura", "Acura", "Acura", "Acura", "Acura", "Audi", "Au...
$ model (chr) "Integra", "Legend", "MDX 4WD", "NSX", "TSX", "A4", "A4 ...
$ n (int) 42, 28, 12, 28, 27, 49, 49, 66, 20, 12, 46, 20, 30, 29, ...
$ years (int) 16, 10, 12, 14, 11, 19, 15, 19, 19, 12, 20, 15, 16, 16, ...
vehicles
> vehicles %>% {
+ class(.) %>% print()
+ dplyr::glimpse(.)
+ }
[1] "tbl_df" "tbl" "data.frame"
Observations: 33,442
Variables: 12
$ id (int) 27550, 28426, 27549, 28425, 1032, 1033, 3347, 13309, 133...
$ make (chr) "AM General", "AM General", "AM General", "AM General", ...
$ model (chr) "DJ Po Vehicle 2WD", "DJ Po Vehicle 2WD", "FJ8c Post Off...
$ year (int) 1984, 1984, 1984, 1984, 1985, 1985, 1987, 1997, 1997, 19...
$ class (chr) "Special Purpose Vehicle 2WD", "Special Purpose Vehicle ...
$ trans (chr) "Automatic 3-spd", "Automatic 3-spd", "Automatic 3-spd",...
$ drive (chr) "2-Wheel Drive", "2-Wheel Drive", "2-Wheel Drive", "2-Wh...
$ cyl (int) 4, 4, 6, 6, 4, 6, 6, 4, 4, 6, 4, 4, 6, 4, 4, 6, 5, 5, 6,...
$ displ (dbl) 2.5, 2.5, 4.2, 4.2, 2.5, 4.2, 3.8, 2.2, 2.2, 3.0, 2.3, 2...
$ fuel (chr) "Regular", "Regular", "Regular", "Regular", "Regular", "...
$ hwy (int) 17, 17, 13, 13, 17, 13, 21, 26, 28, 26, 27, 29, 26, 27, ...
$ cty (int) 18, 18, 13, 13, 16, 13, 14, 20, 22, 18, 19, 21, 17, 20, ...