library(ExPanDaR)
wb <- read.csv("https://joachim-gassen.github.io/data/wb_condensed.csv")
str(wb)
## 'data.frame': 8188 obs. of 13 variables:
## $ country : Factor w/ 193 levels "Afghanistan",..: 1 1 1 1 1 1 1 1 1 1 ...
## $ region : Factor w/ 7 levels "East Asia & Pacific",..: 6 6 6 6 6 6 6 6 6 6 ...
## $ income : Factor w/ 4 levels "High income",..: 2 2 2 2 2 2 2 2 2 2 ...
## $ year : int 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 ...
## $ gdp_capita : num 365 377 364 389 398 ...
## $ lifeexpectancy : num 56.6 57.2 57.9 58.5 59.1 ...
## $ resdevelop_gdp : num NA NA NA NA NA NA NA NA NA NA ...
## $ govtspendeducation_gdp: num NA NA NA NA NA ...
## $ pubspendhealth_gdp : num NA NA NA NA NA NA NA NA NA NA ...
## $ unemployment : num 8.69 8.85 10 8.47 9.06 ...
## $ giniindex : num NA NA NA NA NA NA NA NA NA NA ...
## $ literacy_rate : num NA NA NA NA NA ...
## $ childmortality : num 122 118 114 110 106 ...
# ExPanD(wb, cs_id = "country", ts_id = "year")
# cs_id = "country", ts_id = "year" 해당되는 변수 선택
Explore Panel Data (ExPanD)
A shiny based web app that uses ExPanDaR functionality for interactive panel data exploration
cs_id
A character vector containing the names of the variables that identify the cross-section in your data. Can only be NULL if df_def is provided instead.
ts_id
A character scalar identifying the name of the variable that identifies the time series in your data. The according variable needs to be coercible to an ordered vector. If you provide a time series indicator that already is an ordered vector, ExPanD will verify that it has the same levels for each data frame and throw an error otherwise. Can only be NULL if df_def is provided instead.