R/data.R

#' Gapminder Dataset
#'
#' A dataset containing data on GDP per capita, life expectancy and population
#' size of 183 countries for 1800 to 2015
#'
#' @format A data frame with 14,823 rows and 7 variables:
#' \describe{
#'   \item{country}{country name}
#'   \item{code}{country code}
#'   \item{region}{world region}
#'   \item{year}{year}
#'   \item{life_exp}{life expectancy at birth, in years}
#'   \item{gdp_per_cap}{GDP per capita, in dollars PPP}
#'   \item{pop}{population size, in persons}
#' }
#' @source \url{https://www.gapminder.org/}
"gapminder"

#' @rdname gapminder
"gapminder15"

#' Locales
#'
#' A dataset containing specification of formatting styles to label numbers,
#'    percentages and currencies for 574 locales based on
#'    CLDR (Common Locale Data Repository) data provided by the
#'    [i18n](https://rich-iannone.github.io/i18n/) package.
#'
#' @source \url{https://rich-iannone.github.io/i18n/}
"locales"

#' A table with localized currency attributes and descriptors
#'
#' Re-Imported from i18n to silent R CMD check errors.
#'
#' @source \url{https://rich-iannone.github.io/i18n/}
"currencies"

#' G20 countries
#'
#' A data.frame of names, codes and locales for G20 countries
#'
#' @source \url{https://en.wikipedia.org/wiki/G20}, \url{https://cdn.simplelocalize.io/public/v1/locales}
"g20"

#' Countries
#'
#' A data.frame of country names, language codes, country codes and locales
#'
#' @source \url{https://cdn.simplelocalize.io/public/v1/locales}
"countries"

Try the countryscales package in your browser

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

countryscales documentation built on Sept. 29, 2026, 5:09 p.m.