/
data.R
71 lines (64 loc) · 2.75 KB
/
data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#' Some Hex Triplets I Find Useful/Interesting/Fun
#'
#' This is a simple data frame with labels corresponding to hex triplets (i.e.
#' web colors) that I find useful, interesting, or fun.
#'
#' @format A data frame the following 2 variables.
#' \describe{
#' \item{\code{color}}{a character vector describing the color in question}
#' \item{\code{hex}}{a hex triplet (with preceding hashtag) of the color}
#' }
#'
#' @details Data exist to be used by \code{g_c()} in this same package.
"steve_hex"
#' CAGEMATCH Ratings of Rick Martel
#'
#' This is a simple data frame of ratings (on a 1-10 scale) of Rick Martel.
#'
#' @format A data frame the following 2 variables.
#' \describe{
#' \item{\code{date}}{a date vector for when the rating was posted on CAGEMATCH}
#' \item{\code{value}}{an individual person's rating of Rick Martel (on a 1-10 scale)}
#' }
#'
#' @details Data exist to be used an example bar chart. CAGEMATCH (stylized in
#' all caps) is an internet wrestling database, for which these ratings are fan
#' submissions. Rick Martel is an objective 10/10.
"martel_ratings"
#' GDP per Capita of Swedish Counties, 2001-2020
#'
#' This is a simple data frame of the GDP per capita of Swedish counties from
#' 2001 to 2020.
#'
#' @format A data frame the following 4 variables.
#' \describe{
#' \item{\code{nuts}}{the Nomenclature of Territorial Units for Statistics (NUTS) code for the county}
#' \item{\code{county}}{the name of the county}
#' \item{\code{year}}{the year of observation}
#' \item{\code{value}}{the GDP per capita of the county in nominal SEK}
#' }
#'
#' @details Data come from the OECD and exist to be used as a faceted line chart.
"se_counties_gdppc"
#' Kilowatt Hours per Capita and GDP per Capita, 2010
#'
#' This is a simple data frame of the GDP per capita and kilowatt hours consumed
#' per capita of over 130 sovereign states in 2010.
#'
#' @format A data frame the following 7 variables.
#' \describe{
#' \item{\code{country}}{the name of the country}
#' \item{\code{iso3c}}{the three-character ISO code of the country}
#' \item{\code{year}}{the year of observation (2010)}
#' \item{\code{kwhpc}}{the electric power consumption (kilowatt hours) per capita of the country}
#' \item{\code{gdppc}}{the GDP per capita of the country in current USD}
#' \item{\code{ln_kwhpc}}{the (log-transformed) electric power consumption (kilowatt hours) per capita of the country}
#' \item{\code{ln_gdppc}}{the (log-transformed) GDP per capita of the country in current USD}
#'
#' }
#'
#' @details Data come from a use of the \code{WDI()} function in the \pkg{WDI}
#' package. The GDP per capita data come from a combination of the World Bank
#' and OECD. The energy consumption data come from the International Energy
#' Agency. Data exist to be used in a simple scatterplot.
"kwh_gdp"