Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
head(gdp_per_capita)[1:5]
## Source: local data frame [6 x 5]
##
## GDP per capita 1800 1801 1802 1803
## (chr) (dbl) (dbl) (dbl) (dbl)
## 1 Abkhazia NA NA NA NA
## 2 Afghanistan 634.400 634.4000 634.4000 634.4000
## 3 Akrotiri and Dhekelia NA NA NA NA
## 4 Albania 860.588 861.4818 862.3765 863.2721
## 5 Algeria 1360.000 1361.6358 1363.2716 1364.9074
## 6 American Samoa NA NA NA NA
str(gdp_per_capita, list.len=5)
## Classes 'tbl_df', 'tbl' and 'data.frame': 260 obs. of 215 variables:
## $ GDP per capita: chr "Abkhazia" "Afghanistan" "Akrotiri and Dhekelia" "Albania" ...
## $ 1800 : num NA 634 NA 861 1360 ...
## $ 1801 : num NA 634 NA 861 1362 ...
## $ 1802 : num NA 634 NA 862 1363 ...
## $ 1803 : num NA 634 NA 863 1365 ...
## [list output truncated]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment