R/rd-wbd_example.R

#' @importFrom tibble tibble
NULL

#' A Simple Panel drawn from World Bank Open Data
#'
#' A simple data set drawn from World Bank Open Data. I'll use it to illustrate
#' some merge issues you might encounter in panel data.
#'
#' @format A data frame with 4537 observations on the following 7 variables.
#' \describe{
#' \item{\code{country}}{an English name for the country/territorial unit}
#' \item{\code{iso2c}}{the two-character ISO code for the country/territorial unit}
#' \item{\code{iso3c}}{the three-character ISO code for the country/territorial unit}
#' \item{\code{year}}{the year of observation}
#' \item{\code{rgdppc}}{the real GDP per capita of the country/territorial unit in that year}
#' \item{\code{lifeexp}}{the average life expectancy at birth for men and women for the country that year}
#' \item{\code{hci}}{the human capital index [0-1] for the country that year}
#' }
#'
#' @details
#'
#' The idea for this data comes by way of a student encounter where we noticed
#' this issue. Data were further generated by the wonderful \pkg{WDI} package.
#' The underlying data come from the World Bank national accounts (GDP per
#' capita), World Bank analyst estimates (human capital index), or the United
#' Nations Population Division (life expectancy at birth).
#'
#'
"wbd_example"

Try the stevedata package in your browser

Any scripts or data that you put into this service are public.

stevedata documentation built on Oct. 25, 2023, 5:07 p.m.