Project 1

Make a data frame.

From The World Factbook construct a data frame in which units (rows) are world countries with names from the “book” and variables (columns):

  1. the first variable contains the two character code of the country ISO - for labels in visualizations
  2. the second, third and fourth variable are as given in the table
  3. if you find useful for your exploration you can add additional variables from the “book”

For visual inspection the additional variable region (North America, Central America, South America, Europe, Africa, Middle East, Central Asia, South Asia, East & Southeast Asia, Australia & Oceania, Antarctica) would be very useful - it can be constructed from the map on the entry page and region's countries lists on the next level.

student V2 V3 V4
Lada Litvinova total area railways total roadways total
Ivan Maslov population annual air passengers # of airports
Antonina Milekhina GDP - per capita industrial products growth rate military expenses
Kirill Ivanov death rate literacy, total population % hospital bed density
Grigoriy Stepanov population below poverty line labor force - agriculture % education expenditures
Dmitry Zaytsev total area population military expenditures
Alexander Alimov GDP (absolute) median age military expenditures in % of GDP
Maxim Florov Population Telephones - mobile cellular Internet users
Grigoriy Khvatskiy Education Expenditure % Adult obesity % Internet users %

Save the created data frame as a CSV file.

Explore the collected data.

Write a report. Put the report and CSV file into a ZIP.

Hint: GitHub

> library(jsonlite)
> J <- fromJSON(readLines("factbook.json"))
> str(J,max.level=2)
> J$countries[[4]]$data$name
[1] "Albania"
> J$countries$albania$data$name
[1] "Albania"
> names(J$countries)
> names(J$countries$albania$data)



Students; EDA

ru/hse/eda18/stu/p1.txt · Last modified: 2018/10/31 17:58 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki