├── .Rbuildignore ├── .gitignore ├── DESCRIPTION ├── LICENSE ├── NAMESPACE ├── R ├── data.R └── plus.R ├── README.md ├── data-raw ├── a.csv ├── artists.csv ├── artists2.csv ├── b.csv ├── cases.csv ├── nas.csv ├── nutrition.R ├── nutrition.csv ├── pollution.csv ├── population.csv ├── rates.csv ├── songs.csv ├── songs2.csv ├── storms.csv ├── tb.R ├── tb.csv ├── tidypop.csv ├── toyb.csv ├── who.R ├── who.csv ├── y.csv └── z.csv ├── data ├── a.rdata ├── artists.rdata ├── artists2.rdata ├── b.rdata ├── cases.rdata ├── nas.rdata ├── nutrition.rdata ├── pollution.rdata ├── population.rdata ├── rates.rdata ├── rawtb.rdata ├── songs.rdata ├── songs2.rdata ├── storms.rdata ├── tb.rdata ├── tidypop.rdata ├── toyb.rdata ├── who.rdata ├── y.rdata └── z.rdata └── man ├── a.Rd ├── artists.Rd ├── artists2.Rd ├── b.Rd ├── cases.Rd ├── nas.Rd ├── nutrition.Rd ├── plus.Rd ├── pollution.Rd ├── population.Rd ├── rates.Rd ├── rawtb.Rd ├── songs.Rd ├── songs2.Rd ├── storms.Rd ├── tb.Rd ├── tidypop.Rd ├── toyb.Rd ├── who.Rd ├── y.Rd └── z.Rd /.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^\.travis\.yml$ 2 | ^data-raw$ 3 | ^.*\.Rproj$ 4 | ^\.Rproj\.user$ 5 | ^cran-comments\.md$ 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | rawtb.csv 5 | TB_burden_countries_2014-11-07.csv 6 | TB_notifications_2014-11-13.csv 7 | EDAWR.Rproj -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: EDAWR 2 | Title: Expert Data Analysis with R 3 | Version: 0.1 4 | Authors@R: 'Garrett Grolemund [aut,cre]' 5 | Description: Data sets for Expert Data Analysis with R, 6 | a workshop by RStudio. 7 | Depends: 8 | R (>= 3.1.0) 9 | Imports: 10 | forecast, 11 | babynames 12 | License: CC0 13 | LazyData: true 14 | URL: http://github.com/rstudio/EDAWR 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal 2 | 3 | Statement of Purpose 4 | 5 | The laws of most jurisdictions throughout the world automatically confer 6 | exclusive Copyright and Related Rights (defined below) upon the creator and 7 | subsequent owner(s) (each and all, an "owner") of an original work of 8 | authorship and/or a database (each, a "Work"). 9 | 10 | Certain owners wish to permanently relinquish those rights to a Work for the 11 | purpose of contributing to a commons of creative, cultural and scientific 12 | works ("Commons") that the public can reliably and without fear of later 13 | claims of infringement build upon, modify, incorporate in other works, reuse 14 | and redistribute as freely as possible in any form whatsoever and for any 15 | purposes, including without limitation commercial purposes. These owners may 16 | contribute to the Commons to promote the ideal of a free culture and the 17 | further production of creative, cultural and scientific works, or to gain 18 | reputation or greater distribution for their Work in part through the use and 19 | efforts of others. 20 | 21 | For these and/or other purposes and motivations, and without any expectation 22 | of additional consideration or compensation, the person associating CC0 with a 23 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright 24 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work 25 | and publicly distribute the Work under its terms, with knowledge of his or her 26 | Copyright and Related Rights in the Work and the meaning and intended legal 27 | effect of CC0 on those rights. 28 | 29 | 1. Copyright and Related Rights. A Work made available under CC0 may be 30 | protected by copyright and related or neighboring rights ("Copyright and 31 | Related Rights"). Copyright and Related Rights include, but are not limited 32 | to, the following: 33 | 34 | i. the right to reproduce, adapt, distribute, perform, display, communicate, 35 | and translate a Work; 36 | 37 | ii. moral rights retained by the original author(s) and/or performer(s); 38 | 39 | iii. publicity and privacy rights pertaining to a person's image or likeness 40 | depicted in a Work; 41 | 42 | iv. rights protecting against unfair competition in regards to a Work, 43 | subject to the limitations in paragraph 4(a), below; 44 | 45 | v. rights protecting the extraction, dissemination, use and reuse of data in 46 | a Work; 47 | 48 | vi. database rights (such as those arising under Directive 96/9/EC of the 49 | European Parliament and of the Council of 11 March 1996 on the legal 50 | protection of databases, and under any national implementation thereof, 51 | including any amended or successor version of such directive); and 52 | 53 | vii. other similar, equivalent or corresponding rights throughout the world 54 | based on applicable law or treaty, and any national implementations thereof. 55 | 56 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, 57 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and 58 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright 59 | and Related Rights and associated claims and causes of action, whether now 60 | known or unknown (including existing as well as future claims and causes of 61 | action), in the Work (i) in all territories worldwide, (ii) for the maximum 62 | duration provided by applicable law or treaty (including future time 63 | extensions), (iii) in any current or future medium and for any number of 64 | copies, and (iv) for any purpose whatsoever, including without limitation 65 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes 66 | the Waiver for the benefit of each member of the public at large and to the 67 | detriment of Affirmer's heirs and successors, fully intending that such Waiver 68 | shall not be subject to revocation, rescission, cancellation, termination, or 69 | any other legal or equitable action to disrupt the quiet enjoyment of the Work 70 | by the public as contemplated by Affirmer's express Statement of Purpose. 71 | 72 | 3. Public License Fallback. Should any part of the Waiver for any reason be 73 | judged legally invalid or ineffective under applicable law, then the Waiver 74 | shall be preserved to the maximum extent permitted taking into account 75 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver 76 | is so judged Affirmer hereby grants to each affected person a royalty-free, 77 | non transferable, non sublicensable, non exclusive, irrevocable and 78 | unconditional license to exercise Affirmer's Copyright and Related Rights in 79 | the Work (i) in all territories worldwide, (ii) for the maximum duration 80 | provided by applicable law or treaty (including future time extensions), (iii) 81 | in any current or future medium and for any number of copies, and (iv) for any 82 | purpose whatsoever, including without limitation commercial, advertising or 83 | promotional purposes (the "License"). The License shall be deemed effective as 84 | of the date CC0 was applied by Affirmer to the Work. Should any part of the 85 | License for any reason be judged legally invalid or ineffective under 86 | applicable law, such partial invalidity or ineffectiveness shall not 87 | invalidate the remainder of the License, and in such case Affirmer hereby 88 | affirms that he or she will not (i) exercise any of his or her remaining 89 | Copyright and Related Rights in the Work or (ii) assert any associated claims 90 | and causes of action with respect to the Work, in either case contrary to 91 | Affirmer's express Statement of Purpose. 92 | 93 | 4. Limitations and Disclaimers. 94 | 95 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 96 | surrendered, licensed or otherwise affected by this document. 97 | 98 | b. Affirmer offers the Work as-is and makes no representations or warranties 99 | of any kind concerning the Work, express, implied, statutory or otherwise, 100 | including without limitation warranties of title, merchantability, fitness 101 | for a particular purpose, non infringement, or the absence of latent or 102 | other defects, accuracy, or the present or absence of errors, whether or not 103 | discoverable, all to the greatest extent permissible under applicable law. 104 | 105 | c. Affirmer disclaims responsibility for clearing rights of other persons 106 | that may apply to the Work or any use thereof, including without limitation 107 | any person's Copyright and Related Rights in the Work. Further, Affirmer 108 | disclaims responsibility for obtaining any necessary consents, permissions 109 | or other rights required for any use of the Work. 110 | 111 | d. Affirmer understands and acknowledges that Creative Commons is not a 112 | party to this document and has no duty or obligation with respect to this 113 | CC0 or use of the Work. 114 | 115 | For more information, please see 116 | 117 | -------------------------------------------------------------------------------- /NAMESPACE: -------------------------------------------------------------------------------- 1 | # Generated by roxygen2 (4.1.0): do not edit by hand 2 | 3 | export(plus) 4 | -------------------------------------------------------------------------------- /R/data.R: -------------------------------------------------------------------------------- 1 | #' Pollution data 2 | #' 3 | #' Pollution data from the WHO, 2014. This dataset contains 4 | #' a subset of data from the Ambient Air Pollution Database, 5 | #' WHO, May 2014. 6 | #' 7 | #' @format A data frame with variables: 8 | #' \describe{ 9 | #' \item{city}{Name of city: New York, London, or Beijing} 10 | #' \item{Size}{Size of air particulate measured. Fine suspended particles smaller than 10 microns in diameter (\code{large}) and 2.5 microns in diameter (\code{small}).} 11 | #' \item{amount}{The mean annual concentration of particles in milligrams per meter cubed (ug/m3)} 12 | #' } 13 | #' 14 | #' @source \url{http://www.who.int/phe/health_topics/outdoorair/databases/cities/en/} 15 | #' 16 | "pollution" 17 | 18 | #' Hurricane data 19 | #' 20 | #' Wind speed data for six hurricanes, collected from 21 | #' National Hurricane Center's archive of Tropical Cyclone 22 | #' Reports. 23 | #' 24 | #' @format A data frame with variables: 25 | #' \describe{ 26 | #' \item{storm}{Name of hurricane: Alberto, Alex, Allison, Ana, Arlene, Arthur.} 27 | #' \item{wind}{Maximum wind speed measured for each hurricane (in miles per hour).} 28 | #' \item{pressure}{Air pressure in the storm's center (in millibars).} 29 | #' \item{date}{Date maximum wind speed was observed.} 30 | #' } 31 | #' 32 | #' @source \url{http://www.nhc.noaa.gov/} 33 | #' 34 | "storms" 35 | 36 | #' TB cases in USA, Germany, and France 37 | #' 38 | #' A subset of data from the World Health Organization Global 39 | #' Tuberculosis Report. 40 | #' 41 | #' @format A dataset with the estimated number of TB cases in 42 | #' France, Germany, and the United States for 2011, 2012, and 43 | #' 2013. 44 | #' 45 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 46 | #' 47 | "cases" 48 | 49 | 50 | #' TB data 51 | #' 52 | #' A subset of data from the World Health Organization Global 53 | #' Tuberculosis Report. 54 | #' 55 | #' @format A dataset with the variables 56 | #' \describe{ 57 | #' \item{country}{} 58 | #' \item{year}{} 59 | #' \item{sex}{} 60 | #' \item{child}{Number of new cases reported among people 0 - 14 years of age.} 61 | #' \item{adult}{Number of new cases reported among people 15 - 64 years of age.} 62 | #' \item{elderly}{Number of new cases reported among people over 64 years of age.} 63 | #' } 64 | #' 65 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 66 | #' 67 | "tb" 68 | 69 | #' World Health Organization TB data 70 | #' 71 | #' A subset of data from the World Health Organization Global 72 | #' Tuberculosis Report. 73 | #' 74 | #' @format A dataset with the variables 75 | #' \describe{ 76 | #' \item{country}{} 77 | #' \item{iso2}{Two letter International Organization for Standardization (ISO) country code} 78 | #' \item{iso3}{Three letter International Organization for Standardization (ISO) country code} 79 | #' \item{new_sp_m014 - new_rel_f65}{Counts of new TB cases recorded by group. Column names encode three variables that describe the group (see details).} 80 | #' } 81 | #' 82 | #' @details The data uses the original codes given by the World Health Organization. The column names for columns five through 60 are made by combining \code{new_} to a code for method of diagnosis (\code{rel} = relapse, \code{sn} = negative pulmonary smear, \code{sp} = positive pulmonary smear, \code{ep} = extrapulmonary) to a code for gender (\code{f} = female, \code{m} = male) to a code for age group (\code{014} = 0-14 yrs of age, \code{1524} = 15-24 years of age, \code{2534} = 25 to 34 years of age, \code{3544} = 35 to 44 years of age, \code{4554} = 45 to 54 years of age, \code{5564} = 55 to 64 years of age, \code{65} = 65 years of age or older). 83 | #' 84 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 85 | #' 86 | "who" 87 | 88 | 89 | #' TB rates 90 | #' 91 | #' A subset of data from the World Health Organization Global 92 | #' Tuberculosis Report, manipulated to show TB rates by country by year. 93 | #' 94 | #' @format A dataset with the variables 95 | #' \describe{ 96 | #' \item{country}{} 97 | #' \item{year}{} 98 | #' \item{cases}{Number of new cases of TB reported} 99 | #' \item{population}{} 100 | #' \item{rate}{Number of new cases of TB reported per 10,000 people.} 101 | #' } 102 | #' 103 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 104 | #' 105 | "rates" 106 | 107 | #' Raw TB data 108 | #' 109 | #' A subset of the data in the \code{\link{tb}} data set. The data displays each individual TB case from Afghanistan, Algeria, Angola, Argentina, Azerbaijan, Belarus, Benin, Botswana, and Burundi in its own row. 110 | #' 111 | #' @format A dataset with the variables 112 | #' \describe{ 113 | #' \item{country}{} 114 | #' \item{year}{} 115 | #' \item{sex}{} 116 | #' \item{age}{One of \code{child} (0 - 14 years of age), \code{adult} (15 - 64 years of age), or \code{elderly} (over 64 years of age).} 117 | #' \item{n}{Number of cases: in this layout, one.} 118 | #' } 119 | #' 120 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 121 | #' 122 | "rawtb" 123 | 124 | #' Toy TB data 125 | #' 126 | #' A toy data set based on the \code{\link{tb}} data set. The data displays an imaginary number of TB cases grouped by country, year, and sex. 127 | #' 128 | #' @format A data frame with the columns 129 | #' \describe{ 130 | #' \item{country}{} 131 | #' \item{year}{} 132 | #' \item{sex}{} 133 | #' \item{cases}{} 134 | #' } 135 | "toyb" 136 | 137 | 138 | #' Population data 139 | #' 140 | #' Populations of 100 countries for 1995-2013 laid out in table format 141 | #' 142 | #' 143 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 144 | #' 145 | "population" 146 | 147 | #' Population data 148 | #' 149 | #' Populations of 100 countries for 1995-2013 laid out in tidy format 150 | #' 151 | #' 152 | #' @source \url{http://www.who.int/tb/country/data/download/en/} 153 | #' 154 | "tidypop" 155 | 156 | 157 | #' Names of musicians 158 | #' 159 | #' A simple data set of musicians and the instruments they played. 160 | #' 161 | "artists" 162 | 163 | #' Names of musicians 164 | #' 165 | #' A second simple data set of musicians and the instruments they played. 166 | #' 167 | "artists2" 168 | 169 | #' Names of songs 170 | #' 171 | #' A simple list of pop songs and their authors 172 | #' 173 | "songs" 174 | 175 | #' Names of songs 176 | #' 177 | #' A second simple list of pop songs and their authors 178 | #' 179 | "songs2" 180 | 181 | #' Toy data 182 | #' 183 | #' Meaningless numbers and letters. 184 | #' 185 | "y" 186 | 187 | #' Toy data 188 | #' 189 | #' Meaningless numbers and letters. 190 | #' 191 | "z" 192 | 193 | #' Toy data 194 | #' 195 | #' Meaningless numbers and letters. 196 | #' 197 | "a" 198 | 199 | #' Toy data 200 | #' 201 | #' Meaningless numbers and letters. 202 | #' 203 | "b" 204 | 205 | 206 | #' Toy data 207 | #' 208 | #' A data set that has a tricky set of missing values to work with. 209 | #' 210 | "nas" 211 | 212 | 213 | #' Nutrition data 214 | #' 215 | #' Nutrition data on 8463 foods provided by the United States Department of Agriculture (USDA). The dataset contains the amount of 25 nutrients and macronutrients found in 100 grams of each food, as well as the name, total calories, and food group for each food. 216 | #' 217 | #' The nutrition data was compiled from data sets in the \code{\link[usdanutrients]{usdanutrients}} package. 218 | #' 219 | #' @source \url{http://www.ars.usda.gov/Services/docs.htm?docid=8964} 220 | #' 221 | "nutrition" -------------------------------------------------------------------------------- /R/plus.R: -------------------------------------------------------------------------------- 1 | 2 | #' Vectorized addition with na.rm 3 | #' 4 | #' \code{plus} adds together multiple vectors in element-wise fashion, 5 | #' so \code{plus(a, b, c)} would be similar to \code{a + b +c}. 6 | #' Unlike \code{+}, \code{plus} takes an \code{na.rm} argument to handle 7 | #' NA behavior. 8 | #' 9 | #' @param ... a set of vectors. Each vector should be numeric, integer, or coercible to numeric. 10 | #' na.rm logical. Should missing values (including NaN) be omitted from the calculations? 11 | #' 12 | #' @examples 13 | #' a <- c(NA, 2, 3) 14 | #' b <- c(1, NA, 3) 15 | #' c <- c(1, 2, NA) 16 | #' plus(a, b, c) 17 | #' plus(a, b, c, na.rm = FALSE) 18 | #' 19 | #' @export 20 | plus <- function(..., na.rm = TRUE) { 21 | rowSums(as.data.frame(list(...)), na.rm = na.rm) 22 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Data sets for Expert Data Analysis with R workshop by [RStudio](http://www.rstudio.com) 2 | 3 | * __pollution__ 4 | 5 | Average level of particulate air polution (10 ug/m3 and 2.5 ug/m3) for New York City, London, and Beijing. From [World Health Organization Ambient Air Pollution Database](http://www.who.int/phe/health_topics/outdoorair/databases/cities/en/). 6 | 7 | 8 | * __storms__ 9 | 10 | Maximum wind speeds for six Atlantic hurricanes. From [National Hurricane Center's archive of Tropical Cyclone Reports](http://www.nhc.noaa.gov/). 11 | 12 | * __tb__ 13 | 14 | Number of tuberculosis cases reported in France, Germany and United States 1995-2013. From [World Health Organization Global Tuberculosis Report](http://www.who.int/tb/country/data/download/en/). 15 | 16 | Install from github with `devtools::install_github("rstudio/EDAWR")`. 17 | -------------------------------------------------------------------------------- /data-raw/a.csv: -------------------------------------------------------------------------------- 1 | "x1","x2" 2 | "A",1 3 | "B",2 4 | "C",3 5 | -------------------------------------------------------------------------------- /data-raw/artists.csv: -------------------------------------------------------------------------------- 1 | "name","plays" 2 | "George","sitar" 3 | "John","guitar" 4 | "Paul","bass" 5 | "Ringo","drums" 6 | -------------------------------------------------------------------------------- /data-raw/artists2.csv: -------------------------------------------------------------------------------- 1 | "first","last","plays" 2 | "George","Harrison","sitar" 3 | "John","Lennon","guitar" 4 | "Paul","McCartney","bass" 5 | "Ringo","Starr","drums" 6 | "Paul","Simon","guitar" 7 | "John","Coltrane","sax" 8 | -------------------------------------------------------------------------------- /data-raw/b.csv: -------------------------------------------------------------------------------- 1 | "x1","x2" 2 | "A",TRUE 3 | "B",FALSE 4 | "D",TRUE 5 | -------------------------------------------------------------------------------- /data-raw/cases.csv: -------------------------------------------------------------------------------- 1 | "country","2011","2012","2013" 2 | "FR",7000,6900,7000 3 | "DE",5800,6000,6200 4 | "US",15000,14000,13000 5 | -------------------------------------------------------------------------------- /data-raw/nas.csv: -------------------------------------------------------------------------------- 1 | "a","b","c" 2 | NA,1,1 3 | 2,NA,2 4 | 3,3,NA 5 | NA,NA,NA 6 | -------------------------------------------------------------------------------- /data-raw/nutrition.R: -------------------------------------------------------------------------------- 1 | # nutrition.R 2 | 3 | library(dplyr) 4 | library(tidyr) 5 | library(usdanutrients) 6 | 7 | nutr_names <- c( 8 | "203" = "protein", 9 | "204" = "total_fat", 10 | "205" = "carbohydrates", 11 | "307" = "sodium", 12 | "303" = "iron", 13 | "606" = "saturated_fat", 14 | "301" = "calcium", 15 | "601" = "cholesterol", 16 | "306" = "potassium", 17 | "305" = "phosphorus", 18 | "291" = "fiber", 19 | "318" = "vitamin_A", 20 | "405" = "riboflavin", 21 | "404" = "thiamin", 22 | "406" = "niacin", 23 | "304" = "magnesium", 24 | "309" = "zinc", 25 | "401" = "vitamin_C", 26 | "415" = "vitamin_B6", 27 | "418" = "vitamin_B12", 28 | "317" = "selenium", 29 | "431" = "folic_acid", 30 | "315" = "manganese", 31 | "262" = "caffiene", 32 | "324" = "vitamin_D") 33 | 34 | nutrition <- food %>% 35 | left_join(food_group) %>% 36 | select(food, group, food_id, pro_factor, fat_factor, carb_factor) %>% 37 | inner_join(nutrient %>% select(food_id, nutr_id, value)) %>% 38 | filter(as.character(nutr_id) %in% names(nutr_names)) %>% 39 | mutate(nutr_name = nutr_names[as.character(nutr_id)]) %>% 40 | select(-nutr_id) %>% 41 | spread(nutr_name, value) %>% 42 | mutate(calories = round(pro_factor * protein + fat_factor * total_fat + carb_factor * carbohydrates)) %>% 43 | select(food, calories, protein, carbohydrates, total_fat, saturated_fat, caffiene, cholesterol, fiber, folic_acid, sodium, calcium, iron, magnesium, manganese, niacin, phosphorus, potassium, riboflavin, selenium, thiamin, vitamin_A, vitamin_B6, vitamin_B12, vitamin_C, vitamin_D, zinc, group) 44 | 45 | write.csv(nutrition, file = "data-raw/nutrition.csv", row.names = FALSE) 46 | save(nutrition, file = "data/nutrition.rdata") 47 | -------------------------------------------------------------------------------- /data-raw/pollution.csv: -------------------------------------------------------------------------------- 1 | "city","size","amount" 2 | "New York","large",23 3 | "New York","small",14 4 | "London","large",22 5 | "London","small",16 6 | "Beijing","large",121 7 | "Beijing","small",56 8 | -------------------------------------------------------------------------------- /data-raw/population.csv: -------------------------------------------------------------------------------- 1 | "country","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013" 2 | "Afghanistan",17586073,18415307,19021226,19496836,19987071,20595360,21347782,22202806,23116142,24018682,24860855,25631282,26349243,27032197,27708187,28397812,29105480,29824536,30551674 3 | "Algeria",29315463,29845208,30345466,30820435,31276295,31719449,32150198,32572977,33003442,33461345,33960903,34507214,35097043,35725377,36383302,37062820,37762962,38481705,39208194 4 | "Angola",12104952,12451945,12791388,13137542,13510616,13924930,14385283,14886574,15421075,15976715,16544376,17122409,17712824,18314441,18926650,19549124,20180490,20820525,21471618 5 | "Argentina",34833168,35264070,35690778,36109342,36514558,36903067,37273361,37627545,37970411,38308779,38647854,38988923,39331357,39676083,40023641,40374224,40728738,41086927,41446246 6 | "Azerbaijan",7770806,7852273,7921745,7984460,8047936,8117742,8195427,8279768,8370169,8465127,8563398,8665006,8770122,8877669,8986266,9094718,9202432,9308959,9413420 7 | "Bangladesh",119869585,122400896,124945315,127478524,129966823,132383265,134729503,137006279,139185986,141235035,143135180,144868702,146457067,147969967,149503100,151125475,152862431,154695368,156594962 8 | "Belarus",10189075,10156258,10120556,10080772,10034775,9981460,9920173,9852866,9784111,9719991,9664714,9620359,9585368,9555801,9525785,9491070,9450391,9405097,9356678 9 | "Benin",5985658,6176318,6361301,6546493,6740491,6949366,7174911,7414744,7665681,7922796,8182362,8443671,8707490,8973293,9240783,9509798,9779795,10050702,10323474 10 | "Bolivia (Plurinational State of)",7635362,7806953,7978521,8150214,8322408,8495271,8669066,8843350,9016787,9187610,9354709,9517395,9676456,9834098,9993406,10156601,10324445,10496285,10671200 11 | "Botswana",1583453,1620989,1657349,1692148,1724924,1755375,1783349,1808976,1832602,1854739,1875805,1895944,1915187,1933719,1951715,1969341,1986701,2003910,2021144 12 | "Brazil",161890816,164392423,166925457,169472347,172006362,174504898,176968205,179393768,181752951,184010283,186142403,188134315,189996976,191765567,193490922,195210154,196935134,198656019,200361925 13 | "Burkina Faso",10089876,10372562,10664982,10967836,11281942,11607944,11946080,12296399,12659086,13034258,13421929,13822257,14235075,14659646,15094967,15540284,15995313,16460141,16934839 14 | "Burundi",6209923,6294482,6369573,6447672,6545273,6674286,6839376,7037727,7264340,7510771,7770392,8042579,8328312,8624280,8926687,9232753,9540362,9849569,10162532 15 | "Cambodia",10769198,11090611,11395958,11685332,11960467,12222871,12472586,12709336,12934369,13149386,13356424,13555054,13747288,13940518,14144225,14364931,14605862,14864646,15135169 16 | "Cameroon",13929575,14316949,14709426,15107909,15513653,15927713,16350440,16782044,17223277,17674960,18137734,18611937,19097676,19595026,20103945,20624343,21156272,21699631,22253959 17 | "Central African Republic",3275695,3350299,3424733,3498140,3569523,3638316,3704045,3767248,3829636,3893595,3960897,4032102,4106897,4185106,4266247,4349921,4436217,4525209,4616417 18 | "Chad",6980351,7216321,7463347,7724316,8002899,8301151,8620917,8959964,9311234,9665024,10014413,10356822,10694366,11030628,11371325,11720781,12080037,12448175,12825314 19 | "Chile",14440103,14662323,14872458,15072409,15265536,15454402,15639289,15819522,15995658,16168241,16337749,16504530,16668892,16831184,16991729,17150760,17308449,17464814,17619708 20 | "China",1237531429,1247897092,1257021784,1265222536,1272915272,1280428583,1287890449,1295322020,1302810258,1310414386,1318176835,1326146433,1334343509,1342732604,1351247555,1359821465,1368440300,1377064907,1385566537 21 | "China, Hong Kong SAR",6144498,6275363,6430651,6591717,6732627,6835301,6892752,6912079,6906631,6896523,6896686,6910671,6934748,6967866,7006930,7049514,7096359,7148493,7203836 22 | "Colombia",36573895,37236124,37901358,38568056,39234115,39897984,40558648,41216304,41872051,42527623,43184026,43841370,44498390,45153037,45802561,46444798,47078792,47704427,48321405 23 | "Congo",2720633,2797572,2878333,2961357,3044444,3126204,3205636,3283719,3363418,3448868,3542867,3646653,3758858,3876475,3995146,4111715,4225359,4337051,4447632 24 | "Côte d'Ivoire",14217430,14632391,15042149,15436470,15802248,16131332,16420173,16674987,16909801,17144325,17393994,17662417,17949061,18260044,18601342,18976588,19389954,19839750,20316086 25 | "Democratic People's Republic of Korea",21763678,22016518,22240833,22444993,22641754,22840225,23043449,23248059,23449180,23639303,23813333,23969917,24111989,24243894,24371865,24500520,24631291,24763188,24895480 26 | "Democratic Republic of the Congo",42012524,43122601,44078397,44960941,45889100,46949244,48167045,49516960,50972323,52487293,54028003,55590838,57187942,58819038,60486276,62191161,63931512,65705093,67513677 27 | "Djibouti",663999,675891,687897,699922,711652,722887,733732,744434,755085,765776,776585,787544,798690,810100,821865,834036,846646,859652,872932 28 | "Dominican Republic",7977966,8118570,8256496,8392534,8527881,8663421,8799298,8935261,9071318,9207389,9343362,9479269,9615015,9750195,9884265,10016797,10147598,10276621,10403761 29 | "Ecuador",11315800,11557151,11799289,12042454,12286995,12533087,12780869,13030041,13279806,13529091,13777131,14023503,14268397,14512402,14756424,15001072,15246481,15492264,15737878 30 | "Egypt",61168397,62123592,63094069,64084443,65097777,66136590,67204189,68302914,69432477,70591288,71777678,72990754,74229577,75491922,76775023,78075705,79392466,80721874,82056378 31 | "Ethiopia",57023519,58815116,60584273,62353942,64158887,66024199,67956866,69948344,71989666,74066147,76167240,78290649,80440708,82621190,84838032,87095281,89393063,91728849,94100756 32 | "France",58008958,58216225,58418324,58635564,58894671,59213096,59600714,60047743,60527640,61002537,61444972,61845239,62210877,62552614,62888318,63230866,63582112,63936575,64291280 33 | "Georgia",5067143,4990097,4922489,4861848,4803312,4743591,4682290,4621837,4564938,4515280,4475306,4446032,4426077,4412502,4401093,4388674,4374226,4358242,4340895 34 | "Germany",83147770,83388930,83490697,83500716,83490881,83512459,83583461,83685160,83788480,83848844,83835978,83740302,83578794,83379538,83182774,83017404,82892904,82800121,82726626 35 | "Ghana",16760926,17169151,17568461,17968830,18384302,18825034,19293392,19786307,20301686,20835514,21384034,21947779,22525659,23110139,23691533,24262901,24820706,25366462,25904598 36 | "Guatemala",9983861,10214623,10449636,10691090,10941913,11204183,11478984,11765738,12062835,12367800,12678919,12995374,13317931,13648307,13988988,14341576,14706578,15082831,15468203 37 | "Guinea",7837173,8094751,8296478,8457221,8600911,8746128,8895353,9045748,9204581,9379621,9576331,9798963,10046967,10314678,10593248,10876033,11161530,11451273,11745189 38 | "Haiti",7838241,7986858,8136372,8285690,8433339,8578234,8720247,8859635,8996229,9129933,9260879,9388642,9513714,9638255,9765153,9896400,10032864,10173775,10317461 39 | "Honduras",5591935,5723639,5852719,5980152,6107385,6235561,6365040,6495801,6628171,6762426,6898825,7037428,7178436,7322368,7469844,7621204,7776669,7935846,8097688 40 | "India",955804355,973147577,990460131,1007746556,1025014711,1042261758,1059500888,1076705723,1093786762,1110626108,1127143548,1143289350,1159095250,1174662334,1190138069,1205624648,1221156319,1236686732,1252139596 41 | "Indonesia",194112556,197097887,200050444,202990922,205946831,208938698,211970371,215038285,218145617,221293797,224480901,227709821,230972808,234243489,237486894,240676485,243801639,246864191,249865631 42 | "Iran (Islamic Republic of)",60468352,61440887,62542531,63713397,64858754,65911052,66857624,67727274,68543171,69342126,70152384,70976584,71809219,72660887,73542954,74462314,75424285,76424443,77447168 43 | "Iraq",20363138,21017108,21693597,22387179,23091408,23801156,24516842,25238267,25959531,26673536,27377045,28064095,28740630,29429829,30163199,30962380,31837015,32778030,33765232 44 | "Italy",56967071,56937309,56887127,56850303,56872736,56986085,57200233,57501450,57868021,58267068,58671855,59078271,59485505,59873820,60220314,60508978,60729316,60884593,60990277 45 | "Japan",124483305,124794906,125048712,125266855,125481436,125714674,125973930,126249090,126523597,126772899,126978754,127136020,127248855,127319434,127352872,127352833,127319206,127249704,127143577 46 | "Kazakhstan",15549632,15326132,15085965,14858241,14679568,14575644,14559255,14623188,14747754,14902452,15064088,15227211,15396045,15568294,15743552,15921127,16097998,16271201,16440586 47 | "Kenya",27418077,28186224,28943647,29702246,30478597,31285050,32126351,33000524,33905011,34834606,35785718,36757498,37752304,38773277,39824734,40909194,42027891,43178141,44353691 48 | "Kyrgyzstan",4592135,4658815,4739263,4823870,4898865,4954850,4988162,5003394,5009453,5019310,5042381,5081620,5134297,5197274,5265218,5334223,5403419,5474213,5547548 49 | "Lao People's Democratic Republic",4871472,4986592,5096724,5200898,5298146,5388281,5470169,5545245,5619069,5699112,5790646,5895930,6013278,6139127,6267968,6395713,6521314,6645827,6769727 50 | "Lesotho",1753824,1779197,1801679,1821609,1839611,1856225,1871500,1885487,1898757,1912022,1925844,1940413,1955784,1972199,1989873,2008921,2029516,2051545,2074465 51 | "Liberia",2079921,2197801,2365290,2558085,2741755,2891968,2998770,3070673,3124222,3184643,3269786,3384791,3522294,3672714,3821440,3957990,4079697,4190435,4294077 52 | "Madagascar",13452526,13882646,14329239,14790245,15262817,15744811,16235767,16736029,17245275,17763367,18290394,18826126,19371023,19926785,20495695,21079532,21678934,22293914,22924851 53 | "Malawi",9964065,10153315,10404259,10700180,11012707,11321496,11623166,11926778,12238739,12569091,12924746,13307535,13713758,14138207,14573338,15013694,15457531,15906483,16362567 54 | "Malaysia",20725374,21259831,21805835,22355057,22896048,23420751,23925742,24413795,24890654,25365089,25843466,26327098,26813819,27302348,27790324,28275835,28758968,29239927,29716965 55 | "Mali",8988853,9222157,9462256,9712365,9977308,10260577,10562768,10882662,11219737,11572936,11941258,12325545,12725629,13138299,13559296,13985961,14416737,14853572,15301650 56 | "Mexico",95392647,97201533,98968558,100678867,102316781,103873607,105339877,106723661,108056312,109381550,110731826,112116694,113529819,114968039,116422752,117886404,119361233,120847477,122332399 57 | "Mongolia",2298063,2316598,2335723,2355618,2376197,2397473,2419669,2443231,2468595,2496248,2526502,2559496,2595068,2632834,2672223,2712738,2754209,2796484,2839073 58 | "Morocco",26833093,27237150,27632321,28013585,28374203,28710123,29021156,29311443,29586937,29855820,30125445,30395097,30667086,30955151,31276564,31642360,32059424,32521143,33008150 59 | "Mozambique",15981571,16463426,16914628,17350739,17798102,18275618,18785719,19319894,19873460,20438827,21010376,21587317,22171404,22762525,23361025,23967265,24581367,25203395,25833752 60 | "Myanmar",45329862,45991828,46664455,47321204,47925630,48453000,48894203,49261313,49577152,49875169,50181020,50500070,50828959,51174018,51540490,51931231,52350763,52797319,53259018 61 | "Namibia",1654214,1705309,1757969,1809719,1857149,1897953,1931282,1958303,1981237,2003320,2027026,2052931,2080700,2110791,2143498,2178967,2217618,2259393,2303315 62 | "Nepal",20587157,21115271,21647305,22175431,22690158,23184177,23655119,24102862,24525527,24921910,25292058,25634043,25950022,26249412,26544943,26846016,27156367,27474377,27797457 63 | "Nicaragua",4659458,4756631,4849272,4937320,5021079,5100920,5176685,5248577,5317878,5386299,5455219,5524927,5595533,5667983,5743329,5822209,5905146,5991733,6080478 64 | "Niger",9167078,9499605,9849621,10215806,10596258,10989815,11396434,11817297,12254040,12708897,13183798,13679705,14197289,14737895,15302948,15893746,16511462,17157042,17831270 65 | "Nigeria",108424827,111166210,113979481,116867371,119831888,122876727,126004992,129224641,132550146,135999250,139585891,143314909,147187353,151208080,155381020,159707780,164192925,168833776,173615345 66 | "Pakistan",126689577,130083700,133597492,137139290,140580398,143832014,146857081,149693684,152419974,155151394,157971415,160905794,163928329,167008083,170093999,173149306,176166353,179160111,182142594 67 | "Paraguay",4801834,4911701,5021271,5130723,5240321,5350253,5460621,5571371,5682350,5793330,5904170,6014781,6125285,6236005,6347383,6459721,6573097,6687361,6802295 68 | "Peru",23939261,24365985,24789855,25206817,25611482,26000080,26372358,26729909,27073334,27403845,27723281,28030688,28328410,28625628,28934303,29262830,29614887,29987800,30375603 69 | "Philippines",69606539,71184718,72780928,74393147,76018006,77651848,79297756,80953652,82604681,84231329,85821214,87366573,88875548,90371287,91886400,93444322,95053437,96706764,98393574 70 | "Poland",38479899,38480234,38461279,38428791,38390217,38351437,38314744,38280547,38250426,38225455,38206337,38194163,38189136,38189735,38193591,38198754,38204598,38210924,38216635 71 | "Portugal",10097055,10140627,10182158,10222540,10263532,10306192,10350660,10395630,10439031,10478122,10510967,10536701,10555902,10569881,10580673,10589792,10597629,10603804,10608156 72 | "Republic of Korea",44652994,44940974,45220543,45489131,45742103,45977210,46192932,46393993,46591762,46801310,47033082,47291491,47572585,47867970,48164969,48453931,48732640,49002683,49262698 73 | "Republic of Moldova",4339081,4308050,4268774,4221726,4167552,4107184,4040579,3969040,3896494,3827963,3767077,3715541,3672638,3636510,3604078,3573024,3542928,3514381,3487204 74 | "Romania",22963512,22841943,22717415,22596183,22484940,22388354,22310092,22249564,22201592,22158163,22113264,22065409,22015937,21964962,21913311,21861476,21808931,21754741,21698585 75 | "Russian Federation",148602147,148375246,148079919,147715550,147275875,146762881,146170247,145520813,144879644,144331352,143932966,143715023,143652377,143677033,143689741,143617913,143438152,143169653,142833689 76 | "Rwanda",5663838,5929575,6470628,7169658,7853015,8395577,8760003,8987523,9126167,9254379,9429457,9660946,9928143,10222961,10529668,10836732,11144315,11457801,11776522 77 | "Saudi Arabia",18567343,18848350,19060850,19282965,19620692,20144584,20891594,21825217,22852333,23839231,24690067,25371936,25915624,26366358,26796375,27258387,27761728,28287855,28828870 78 | "Senegal",8711528,8940298,9164050,9387783,9618564,9861679,10119118,10390050,10673535,10967568,11270826,11582925,11904974,12238791,12586827,12950564,13330737,13726021,14133280 79 | "Sierra Leone",3927105,3919708,3928313,3961869,4030443,4139757,4295667,4493047,4712763,4928175,5119895,5280909,5416015,5532139,5641182,5751976,5865491,5978727,6092075 80 | "Somalia",6346440,6481035,6673254,6904978,7149044,7385416,7609265,7825924,8037706,8249965,8466938,8687671,8910851,9140259,9380854,9636173,9907903,10195134,10495583 81 | "South Africa",41426810,42204043,42906581,43558285,44195890,44846286,45513217,46187794,46869028,47553025,48235291,48919359,49602778,50267488,50889543,51452352,51949041,52385920,52776130 82 | "Spain",39420568,39513721,39603778,39729942,39944692,40282828,40756675,41346738,42015864,42710301,43387477,44038456,44664067,45243381,45754265,46182038,46514117,46754541,46926963 83 | "Sri Lanka",18241711,18367795,18473862,18575763,18695041,18846401,19037119,19260853,19501969,19737578,19951291,20137560,20301912,20452387,20601663,20758779,20925532,21098099,21273228 84 | "Sudan",29963988,30824141,31682982,32551853,33447666,34382782,35359265,36373247,37423884,38508752,39625222,40774428,41954986,43158451,44373749,45592931,36430923,37195349,37964306 85 | "Swaziland",963428,984506,1006760,1028694,1048151,1063715,1074761,1082183,1087929,1094758,1104642,1118253,1134977,1153929,1173678,1193148,1212159,1230985,1249514 86 | "Syrian Arab Republic",14338240,14746306,15168523,15591261,15995760,16371208,16700984,16994676,17298476,17676012,18167367,18804914,19561477,20346056,21031546,21532647,21804363,21889682,21898061 87 | "Tajikistan",5784330,5862347,5937177,6012933,6094661,6186152,6289340,6404118,6529609,6663929,6805655,6954522,7111025,7275252,7447396,7627326,7814850,8008990,8207834 88 | "Thailand",58983954,59562136,60206941,60903042,61623143,62343379,63069070,63797841,64488338,65087400,65559487,65883961,66076927,66185340,66277335,66402316,66576332,66785001,67010502 89 | "Togo",4284497,4392177,4504291,4620710,4740974,4864753,4992225,5123674,5258956,5397851,5540214,5685845,5834806,5987491,6144457,6306014,6472304,6642928,6816982 90 | "Turkey",58522320,59442502,60372413,61308204,62243779,63174483,64100297,65022300,65938265,66845635,67743052,68626337,69496513,70363511,71241080,72137546,73058638,73997128,74932641 91 | "Uganda",20740726,21407693,22084527,22780451,23507800,24275641,25088033,25943441,26838428,27766986,28724869,29711397,30728747,31778799,32864328,33987213,35148064,36345860,37578876 92 | "Ukraine",51146967,50821019,50421998,49974187,49510626,49057226,48620596,48200504,47807199,47450472,47135932,46871328,46653183,46461350,46267306,46050220,45802721,45529944,45238805 93 | "United Kingdom of Great Britain and Northern Ireland",57997197,58168519,58346633,58534306,58735006,58951444,59183774,59431937,59697954,59984118,60291414,60620907,60970360,61333257,61700797,62066350,62426923,62783115,63136265 94 | "United Republic of Tanzania",29944302,30780453,31586039,32378333,33183093,34020512,34895398,35806497,36760831,37765139,38824384,39942347,41119693,42353790,43639752,44973330,46354607,47783107,49253126 95 | "United States of America",268039654,271231546,274606475,278053607,281419130,284594395,287532638,290270187,292883010,295487267,298165797,300942917,303786752,306657153,309491893,312247116,314911752,317505266,320050716 96 | "Uzbekistan",22950898,23381250,23789736,24170760,24517962,24828562,25098636,25334021,25553928,25784397,26044401,26340696,26668950,27023200,27392784,27769270,28151746,28541423,28934102 97 | "Venezuela (Bolivarian Republic of)",22092144,22556838,23020184,23482700,23945002,24407553,24870441,25333622,25797219,26261326,26725897,27190882,27655937,28120312,28583040,29043283,29500625,29954782,30405207 98 | "Viet Nam",76020043,77166873,78199254,79140734,80027521,80887879,81728768,82547682,83352595,84150651,84947852,85747625,86553201,87369203,88199997,89047397,89913956,90795769,91679733 99 | "Yemen",15018201,15578640,16088019,16564235,17035531,17522537,18029989,18551068,19081306,19612696,20139661,20661714,21182162,21703571,22229625,22763008,23304206,23852409,24407381 100 | "Zambia",8841338,9073311,9320089,9577483,9839179,10100981,10362137,10625423,10894519,11174650,11470022,11781612,12109620,12456527,12825031,13216985,13633796,14075099,14538640 101 | "Zimbabwe",11639364,11846110,12045813,12229500,12384727,12503652,12586763,12640922,12673103,12693047,12710589,12724308,12740160,12784041,12888918,13076978,13358738,13724317,14149648 102 | -------------------------------------------------------------------------------- /data-raw/songs.csv: -------------------------------------------------------------------------------- 1 | "song","name" 2 | "Across the Universe","John" 3 | "Come Together","John" 4 | "Hello, Goodbye","Paul" 5 | "Peggy Sue","Buddy" 6 | -------------------------------------------------------------------------------- /data-raw/songs2.csv: -------------------------------------------------------------------------------- 1 | "song","first","last" 2 | "Across the Universe","John","Lennon" 3 | "Come Together","John","Lennon" 4 | "Hello, Goodbye","Paul","McCartney" 5 | "Peggy Sue","Buddy","Holly" 6 | -------------------------------------------------------------------------------- /data-raw/storms.csv: -------------------------------------------------------------------------------- 1 | "storm","wind","pressure","date" 2 | "Alberto",110,1007,2000-08-03 3 | "Alex",45,1009,1998-07-27 4 | "Allison",65,1005,1995-06-03 5 | "Ana",40,1013,1997-06-30 6 | "Arlene",50,1010,1999-06-11 7 | "Arthur",45,1010,1996-06-17 8 | -------------------------------------------------------------------------------- /data-raw/tb.R: -------------------------------------------------------------------------------- 1 | # making the larger tb dataset 2 | tb <- read.csv("data-raw/TB_notifications_2014-11-13.csv", stringsAsFactors = FALSE) 3 | 4 | library(dplyr) 5 | library(tidyr) 6 | 7 | tb2 <- tb %>% 8 | tbl_df() %>% 9 | select(country:iso3, year, new_sp_m014:new_sp_m65, new_sp_f014:new_sp_f65, new_sn_m014:new_sn_m65, new_sn_f014:new_sn_f65, new_ep_m014:new_ep_m65, new_ep_f014:new_ep_f65, newrel_m014:newrel_m65, newrel_f014:newrel_f65) 10 | 11 | dput(names(tb2)[47:60]) 12 | names(tb2)[47:60] <- c("new_rel_m014", "new_rel_m1524", "new_rel_m2534", 13 | "new_rel_m3544", "new_rel_m4554", "new_rel_m5564", "new_rel_m65", 14 | "new_rel_f014", "new_rel_f1524", "new_rel_f2534", "new_rel_f3544", 15 | "new_rel_f4554", "new_rel_f5564", "new_rel_f65") 16 | 17 | tb3 <- tb2 %>% 18 | gather("group", "n", new_sp_m014:new_rel_f65) %>% 19 | separate(group, c("new", "type", "sexage"), sep = "_") %>% 20 | mutate(sex = substr(sexage, 1, 1), age = paste0("a", substring(sexage, 2))) %>% 21 | group_by(country, year, sex, age) %>% 22 | summarise(nots = sum(!is.na(n)), n = sum(n, na.rm = TRUE)) %>% 23 | ungroup() 24 | 25 | tb3$n[tb3$nots == 0] <- NA 26 | tb3$sex <- c(f = "female", m = "male")[tb3$sex] 27 | tb3$age <- c(a014 = "child", 28 | a1524 = "adult", 29 | a2534 = "adult", 30 | a3544 = "adult", 31 | a4554 = "adult", 32 | a5564 = "adult", 33 | a65 = "elderly")[tb3$age] 34 | 35 | tb4 <- tb3 %>% 36 | group_by(country, year, sex, age) %>% 37 | summarise(n = sum(n)) %>% 38 | ungroup() 39 | 40 | # which countries to include? 41 | keep <- tb4 %>% filter(year >= 1995) %>% 42 | group_by(country) %>% 43 | summarise(total = sum(n, na.rm = TRUE)) %>% 44 | as.data.frame() %>% 45 | arrange(desc(total)) %>% 46 | filter(total > 25000) 47 | keep <- keep$country 48 | 49 | tb5 <- tb4 %>% 50 | filter(year >= 1995, country %in% keep) 51 | 52 | tb6 <- tb5 %>% 53 | spread(age, n) %>% 54 | select(country:sex, child, adult, elderly) 55 | 56 | tb <- tb6 57 | write.csv(tb, file = "data-raw/tb.csv", row.names = FALSE) 58 | save(tb, file = "data/tb.rdata") 59 | 60 | 61 | # making population data set 62 | 63 | pop <- read.csv("data-raw/TB_burden_countries_2014-11-07.csv", stringsAsFactors = FALSE) 64 | 65 | population <- pop %>% 66 | tbl_df() %>% 67 | select(country, year, e_pop_num) %>% 68 | filter(year >= 1995, country %in% keep) %>% 69 | spread(year, e_pop_num) 70 | write.csv(population, file = "data-raw/population.csv", row.names = FALSE) 71 | save(population, file = "data/population.rdata") 72 | 73 | # making raw tb data set 74 | 75 | nraw <- tb5 %>% 76 | filter(!is.na(n), country %in% unique(tb$country)[c(1:5, 7:8, 10, 13)]) 77 | 78 | n <- nraw$n 79 | index <- rep(NA, sum(n)) 80 | j <- 1 81 | 82 | for (i in 1:length(n)) { 83 | k <- j + n[i] 84 | index[j:(k - 1)] <- i 85 | j <- k 86 | } 87 | 88 | nraw$n <- 1 89 | rawtb <- nraw[index, ] 90 | # write.csv(rawtb, file = "data-raw/rawtb.csv", row.names = FALSE) 91 | save(rawtb, file = "data/rawtb.rdata") 92 | -------------------------------------------------------------------------------- /data-raw/tidypop.csv: -------------------------------------------------------------------------------- 1 | "country","year","population" 2 | "Afghanistan",1995,17586073 3 | "Algeria",1995,29315463 4 | "Angola",1995,12104952 5 | "Argentina",1995,34833168 6 | "Azerbaijan",1995,7770806 7 | "Bangladesh",1995,119869585 8 | "Belarus",1995,10189075 9 | "Benin",1995,5985658 10 | "Bolivia (Plurinational State of)",1995,7635362 11 | "Botswana",1995,1583453 12 | "Brazil",1995,161890816 13 | "Burkina Faso",1995,10089876 14 | "Burundi",1995,6209923 15 | "Cambodia",1995,10769198 16 | "Cameroon",1995,13929575 17 | "Central African Republic",1995,3275695 18 | "Chad",1995,6980351 19 | "Chile",1995,14440103 20 | "China",1995,1237531429 21 | "China, Hong Kong SAR",1995,6144498 22 | "Colombia",1995,36573895 23 | "Congo",1995,2720633 24 | "Côte d'Ivoire",1995,14217430 25 | "Democratic People's Republic of Korea",1995,21763678 26 | "Democratic Republic of the Congo",1995,42012524 27 | "Djibouti",1995,663999 28 | "Dominican Republic",1995,7977966 29 | "Ecuador",1995,11315800 30 | "Egypt",1995,61168397 31 | "Ethiopia",1995,57023519 32 | "France",1995,58008958 33 | "Georgia",1995,5067143 34 | "Germany",1995,83147770 35 | "Ghana",1995,16760926 36 | "Guatemala",1995,9983861 37 | "Guinea",1995,7837173 38 | "Haiti",1995,7838241 39 | "Honduras",1995,5591935 40 | "India",1995,955804355 41 | "Indonesia",1995,194112556 42 | "Iran (Islamic Republic of)",1995,60468352 43 | "Iraq",1995,20363138 44 | "Italy",1995,56967071 45 | "Japan",1995,124483305 46 | "Kazakhstan",1995,15549632 47 | "Kenya",1995,27418077 48 | "Kyrgyzstan",1995,4592135 49 | "Lao People's Democratic Republic",1995,4871472 50 | "Lesotho",1995,1753824 51 | "Liberia",1995,2079921 52 | "Madagascar",1995,13452526 53 | "Malawi",1995,9964065 54 | "Malaysia",1995,20725374 55 | "Mali",1995,8988853 56 | "Mexico",1995,95392647 57 | "Mongolia",1995,2298063 58 | "Morocco",1995,26833093 59 | "Mozambique",1995,15981571 60 | "Myanmar",1995,45329862 61 | "Namibia",1995,1654214 62 | "Nepal",1995,20587157 63 | "Nicaragua",1995,4659458 64 | "Niger",1995,9167078 65 | "Nigeria",1995,108424827 66 | "Pakistan",1995,126689577 67 | "Paraguay",1995,4801834 68 | "Peru",1995,23939261 69 | "Philippines",1995,69606539 70 | "Poland",1995,38479899 71 | "Portugal",1995,10097055 72 | "Republic of Korea",1995,44652994 73 | "Republic of Moldova",1995,4339081 74 | "Romania",1995,22963512 75 | "Russian Federation",1995,148602147 76 | "Rwanda",1995,5663838 77 | "Saudi Arabia",1995,18567343 78 | "Senegal",1995,8711528 79 | "Sierra Leone",1995,3927105 80 | "Somalia",1995,6346440 81 | "South Africa",1995,41426810 82 | "Spain",1995,39420568 83 | "Sri Lanka",1995,18241711 84 | "Sudan",1995,29963988 85 | "Swaziland",1995,963428 86 | "Syrian Arab Republic",1995,14338240 87 | "Tajikistan",1995,5784330 88 | "Thailand",1995,58983954 89 | "Togo",1995,4284497 90 | "Turkey",1995,58522320 91 | "Uganda",1995,20740726 92 | "Ukraine",1995,51146967 93 | "United Kingdom of Great Britain and Northern Ireland",1995,57997197 94 | "United Republic of Tanzania",1995,29944302 95 | "United States of America",1995,268039654 96 | "Uzbekistan",1995,22950898 97 | "Venezuela (Bolivarian Republic of)",1995,22092144 98 | "Viet Nam",1995,76020043 99 | "Yemen",1995,15018201 100 | "Zambia",1995,8841338 101 | "Zimbabwe",1995,11639364 102 | "Afghanistan",1996,18415307 103 | "Algeria",1996,29845208 104 | "Angola",1996,12451945 105 | "Argentina",1996,35264070 106 | "Azerbaijan",1996,7852273 107 | "Bangladesh",1996,122400896 108 | "Belarus",1996,10156258 109 | "Benin",1996,6176318 110 | "Bolivia (Plurinational State of)",1996,7806953 111 | "Botswana",1996,1620989 112 | "Brazil",1996,164392423 113 | "Burkina Faso",1996,10372562 114 | "Burundi",1996,6294482 115 | "Cambodia",1996,11090611 116 | "Cameroon",1996,14316949 117 | "Central African Republic",1996,3350299 118 | "Chad",1996,7216321 119 | "Chile",1996,14662323 120 | "China",1996,1247897092 121 | "China, Hong Kong SAR",1996,6275363 122 | "Colombia",1996,37236124 123 | "Congo",1996,2797572 124 | "Côte d'Ivoire",1996,14632391 125 | "Democratic People's Republic of Korea",1996,22016518 126 | "Democratic Republic of the Congo",1996,43122601 127 | "Djibouti",1996,675891 128 | "Dominican Republic",1996,8118570 129 | "Ecuador",1996,11557151 130 | "Egypt",1996,62123592 131 | "Ethiopia",1996,58815116 132 | "France",1996,58216225 133 | "Georgia",1996,4990097 134 | "Germany",1996,83388930 135 | "Ghana",1996,17169151 136 | "Guatemala",1996,10214623 137 | "Guinea",1996,8094751 138 | "Haiti",1996,7986858 139 | "Honduras",1996,5723639 140 | "India",1996,973147577 141 | "Indonesia",1996,197097887 142 | "Iran (Islamic Republic of)",1996,61440887 143 | "Iraq",1996,21017108 144 | "Italy",1996,56937309 145 | "Japan",1996,124794906 146 | "Kazakhstan",1996,15326132 147 | "Kenya",1996,28186224 148 | "Kyrgyzstan",1996,4658815 149 | "Lao People's Democratic Republic",1996,4986592 150 | "Lesotho",1996,1779197 151 | "Liberia",1996,2197801 152 | "Madagascar",1996,13882646 153 | "Malawi",1996,10153315 154 | "Malaysia",1996,21259831 155 | "Mali",1996,9222157 156 | "Mexico",1996,97201533 157 | "Mongolia",1996,2316598 158 | "Morocco",1996,27237150 159 | "Mozambique",1996,16463426 160 | "Myanmar",1996,45991828 161 | "Namibia",1996,1705309 162 | "Nepal",1996,21115271 163 | "Nicaragua",1996,4756631 164 | "Niger",1996,9499605 165 | "Nigeria",1996,111166210 166 | "Pakistan",1996,130083700 167 | "Paraguay",1996,4911701 168 | "Peru",1996,24365985 169 | "Philippines",1996,71184718 170 | "Poland",1996,38480234 171 | "Portugal",1996,10140627 172 | "Republic of Korea",1996,44940974 173 | "Republic of Moldova",1996,4308050 174 | "Romania",1996,22841943 175 | "Russian Federation",1996,148375246 176 | "Rwanda",1996,5929575 177 | "Saudi Arabia",1996,18848350 178 | "Senegal",1996,8940298 179 | "Sierra Leone",1996,3919708 180 | "Somalia",1996,6481035 181 | "South Africa",1996,42204043 182 | "Spain",1996,39513721 183 | "Sri Lanka",1996,18367795 184 | "Sudan",1996,30824141 185 | "Swaziland",1996,984506 186 | "Syrian Arab Republic",1996,14746306 187 | "Tajikistan",1996,5862347 188 | "Thailand",1996,59562136 189 | "Togo",1996,4392177 190 | "Turkey",1996,59442502 191 | "Uganda",1996,21407693 192 | "Ukraine",1996,50821019 193 | "United Kingdom of Great Britain and Northern Ireland",1996,58168519 194 | "United Republic of Tanzania",1996,30780453 195 | "United States of America",1996,271231546 196 | "Uzbekistan",1996,23381250 197 | "Venezuela (Bolivarian Republic of)",1996,22556838 198 | "Viet Nam",1996,77166873 199 | "Yemen",1996,15578640 200 | "Zambia",1996,9073311 201 | "Zimbabwe",1996,11846110 202 | "Afghanistan",1997,19021226 203 | "Algeria",1997,30345466 204 | "Angola",1997,12791388 205 | "Argentina",1997,35690778 206 | "Azerbaijan",1997,7921745 207 | "Bangladesh",1997,124945315 208 | "Belarus",1997,10120556 209 | "Benin",1997,6361301 210 | "Bolivia (Plurinational State of)",1997,7978521 211 | "Botswana",1997,1657349 212 | "Brazil",1997,166925457 213 | "Burkina Faso",1997,10664982 214 | "Burundi",1997,6369573 215 | "Cambodia",1997,11395958 216 | "Cameroon",1997,14709426 217 | "Central African Republic",1997,3424733 218 | "Chad",1997,7463347 219 | "Chile",1997,14872458 220 | "China",1997,1257021784 221 | "China, Hong Kong SAR",1997,6430651 222 | "Colombia",1997,37901358 223 | "Congo",1997,2878333 224 | "Côte d'Ivoire",1997,15042149 225 | "Democratic People's Republic of Korea",1997,22240833 226 | "Democratic Republic of the Congo",1997,44078397 227 | "Djibouti",1997,687897 228 | "Dominican Republic",1997,8256496 229 | "Ecuador",1997,11799289 230 | "Egypt",1997,63094069 231 | "Ethiopia",1997,60584273 232 | "France",1997,58418324 233 | "Georgia",1997,4922489 234 | "Germany",1997,83490697 235 | "Ghana",1997,17568461 236 | "Guatemala",1997,10449636 237 | "Guinea",1997,8296478 238 | "Haiti",1997,8136372 239 | "Honduras",1997,5852719 240 | "India",1997,990460131 241 | "Indonesia",1997,200050444 242 | "Iran (Islamic Republic of)",1997,62542531 243 | "Iraq",1997,21693597 244 | "Italy",1997,56887127 245 | "Japan",1997,125048712 246 | "Kazakhstan",1997,15085965 247 | "Kenya",1997,28943647 248 | "Kyrgyzstan",1997,4739263 249 | "Lao People's Democratic Republic",1997,5096724 250 | "Lesotho",1997,1801679 251 | "Liberia",1997,2365290 252 | "Madagascar",1997,14329239 253 | "Malawi",1997,10404259 254 | "Malaysia",1997,21805835 255 | "Mali",1997,9462256 256 | "Mexico",1997,98968558 257 | "Mongolia",1997,2335723 258 | "Morocco",1997,27632321 259 | "Mozambique",1997,16914628 260 | "Myanmar",1997,46664455 261 | "Namibia",1997,1757969 262 | "Nepal",1997,21647305 263 | "Nicaragua",1997,4849272 264 | "Niger",1997,9849621 265 | "Nigeria",1997,113979481 266 | "Pakistan",1997,133597492 267 | "Paraguay",1997,5021271 268 | "Peru",1997,24789855 269 | "Philippines",1997,72780928 270 | "Poland",1997,38461279 271 | "Portugal",1997,10182158 272 | "Republic of Korea",1997,45220543 273 | "Republic of Moldova",1997,4268774 274 | "Romania",1997,22717415 275 | "Russian Federation",1997,148079919 276 | "Rwanda",1997,6470628 277 | "Saudi Arabia",1997,19060850 278 | "Senegal",1997,9164050 279 | "Sierra Leone",1997,3928313 280 | "Somalia",1997,6673254 281 | "South Africa",1997,42906581 282 | "Spain",1997,39603778 283 | "Sri Lanka",1997,18473862 284 | "Sudan",1997,31682982 285 | "Swaziland",1997,1006760 286 | "Syrian Arab Republic",1997,15168523 287 | "Tajikistan",1997,5937177 288 | "Thailand",1997,60206941 289 | "Togo",1997,4504291 290 | "Turkey",1997,60372413 291 | "Uganda",1997,22084527 292 | "Ukraine",1997,50421998 293 | "United Kingdom of Great Britain and Northern Ireland",1997,58346633 294 | "United Republic of Tanzania",1997,31586039 295 | "United States of America",1997,274606475 296 | "Uzbekistan",1997,23789736 297 | "Venezuela (Bolivarian Republic of)",1997,23020184 298 | "Viet Nam",1997,78199254 299 | "Yemen",1997,16088019 300 | "Zambia",1997,9320089 301 | "Zimbabwe",1997,12045813 302 | "Afghanistan",1998,19496836 303 | "Algeria",1998,30820435 304 | "Angola",1998,13137542 305 | "Argentina",1998,36109342 306 | "Azerbaijan",1998,7984460 307 | "Bangladesh",1998,127478524 308 | "Belarus",1998,10080772 309 | "Benin",1998,6546493 310 | "Bolivia (Plurinational State of)",1998,8150214 311 | "Botswana",1998,1692148 312 | "Brazil",1998,169472347 313 | "Burkina Faso",1998,10967836 314 | "Burundi",1998,6447672 315 | "Cambodia",1998,11685332 316 | "Cameroon",1998,15107909 317 | "Central African Republic",1998,3498140 318 | "Chad",1998,7724316 319 | "Chile",1998,15072409 320 | "China",1998,1265222536 321 | "China, Hong Kong SAR",1998,6591717 322 | "Colombia",1998,38568056 323 | "Congo",1998,2961357 324 | "Côte d'Ivoire",1998,15436470 325 | "Democratic People's Republic of Korea",1998,22444993 326 | "Democratic Republic of the Congo",1998,44960941 327 | "Djibouti",1998,699922 328 | "Dominican Republic",1998,8392534 329 | "Ecuador",1998,12042454 330 | "Egypt",1998,64084443 331 | "Ethiopia",1998,62353942 332 | "France",1998,58635564 333 | "Georgia",1998,4861848 334 | "Germany",1998,83500716 335 | "Ghana",1998,17968830 336 | "Guatemala",1998,10691090 337 | "Guinea",1998,8457221 338 | "Haiti",1998,8285690 339 | "Honduras",1998,5980152 340 | "India",1998,1007746556 341 | "Indonesia",1998,202990922 342 | "Iran (Islamic Republic of)",1998,63713397 343 | "Iraq",1998,22387179 344 | "Italy",1998,56850303 345 | "Japan",1998,125266855 346 | "Kazakhstan",1998,14858241 347 | "Kenya",1998,29702246 348 | "Kyrgyzstan",1998,4823870 349 | "Lao People's Democratic Republic",1998,5200898 350 | "Lesotho",1998,1821609 351 | "Liberia",1998,2558085 352 | "Madagascar",1998,14790245 353 | "Malawi",1998,10700180 354 | "Malaysia",1998,22355057 355 | "Mali",1998,9712365 356 | "Mexico",1998,100678867 357 | "Mongolia",1998,2355618 358 | "Morocco",1998,28013585 359 | "Mozambique",1998,17350739 360 | "Myanmar",1998,47321204 361 | "Namibia",1998,1809719 362 | "Nepal",1998,22175431 363 | "Nicaragua",1998,4937320 364 | "Niger",1998,10215806 365 | "Nigeria",1998,116867371 366 | "Pakistan",1998,137139290 367 | "Paraguay",1998,5130723 368 | "Peru",1998,25206817 369 | "Philippines",1998,74393147 370 | "Poland",1998,38428791 371 | "Portugal",1998,10222540 372 | "Republic of Korea",1998,45489131 373 | "Republic of Moldova",1998,4221726 374 | "Romania",1998,22596183 375 | "Russian Federation",1998,147715550 376 | "Rwanda",1998,7169658 377 | "Saudi Arabia",1998,19282965 378 | "Senegal",1998,9387783 379 | "Sierra Leone",1998,3961869 380 | "Somalia",1998,6904978 381 | "South Africa",1998,43558285 382 | "Spain",1998,39729942 383 | "Sri Lanka",1998,18575763 384 | "Sudan",1998,32551853 385 | "Swaziland",1998,1028694 386 | "Syrian Arab Republic",1998,15591261 387 | "Tajikistan",1998,6012933 388 | "Thailand",1998,60903042 389 | "Togo",1998,4620710 390 | "Turkey",1998,61308204 391 | "Uganda",1998,22780451 392 | "Ukraine",1998,49974187 393 | "United Kingdom of Great Britain and Northern Ireland",1998,58534306 394 | "United Republic of Tanzania",1998,32378333 395 | "United States of America",1998,278053607 396 | "Uzbekistan",1998,24170760 397 | "Venezuela (Bolivarian Republic of)",1998,23482700 398 | "Viet Nam",1998,79140734 399 | "Yemen",1998,16564235 400 | "Zambia",1998,9577483 401 | "Zimbabwe",1998,12229500 402 | "Afghanistan",1999,19987071 403 | "Algeria",1999,31276295 404 | "Angola",1999,13510616 405 | "Argentina",1999,36514558 406 | "Azerbaijan",1999,8047936 407 | "Bangladesh",1999,129966823 408 | "Belarus",1999,10034775 409 | "Benin",1999,6740491 410 | "Bolivia (Plurinational State of)",1999,8322408 411 | "Botswana",1999,1724924 412 | "Brazil",1999,172006362 413 | "Burkina Faso",1999,11281942 414 | "Burundi",1999,6545273 415 | "Cambodia",1999,11960467 416 | "Cameroon",1999,15513653 417 | "Central African Republic",1999,3569523 418 | "Chad",1999,8002899 419 | "Chile",1999,15265536 420 | "China",1999,1272915272 421 | "China, Hong Kong SAR",1999,6732627 422 | "Colombia",1999,39234115 423 | "Congo",1999,3044444 424 | "Côte d'Ivoire",1999,15802248 425 | "Democratic People's Republic of Korea",1999,22641754 426 | "Democratic Republic of the Congo",1999,45889100 427 | "Djibouti",1999,711652 428 | "Dominican Republic",1999,8527881 429 | "Ecuador",1999,12286995 430 | "Egypt",1999,65097777 431 | "Ethiopia",1999,64158887 432 | "France",1999,58894671 433 | "Georgia",1999,4803312 434 | "Germany",1999,83490881 435 | "Ghana",1999,18384302 436 | "Guatemala",1999,10941913 437 | "Guinea",1999,8600911 438 | "Haiti",1999,8433339 439 | "Honduras",1999,6107385 440 | "India",1999,1025014711 441 | "Indonesia",1999,205946831 442 | "Iran (Islamic Republic of)",1999,64858754 443 | "Iraq",1999,23091408 444 | "Italy",1999,56872736 445 | "Japan",1999,125481436 446 | "Kazakhstan",1999,14679568 447 | "Kenya",1999,30478597 448 | "Kyrgyzstan",1999,4898865 449 | "Lao People's Democratic Republic",1999,5298146 450 | "Lesotho",1999,1839611 451 | "Liberia",1999,2741755 452 | "Madagascar",1999,15262817 453 | "Malawi",1999,11012707 454 | "Malaysia",1999,22896048 455 | "Mali",1999,9977308 456 | "Mexico",1999,102316781 457 | "Mongolia",1999,2376197 458 | "Morocco",1999,28374203 459 | "Mozambique",1999,17798102 460 | "Myanmar",1999,47925630 461 | "Namibia",1999,1857149 462 | "Nepal",1999,22690158 463 | "Nicaragua",1999,5021079 464 | "Niger",1999,10596258 465 | "Nigeria",1999,119831888 466 | "Pakistan",1999,140580398 467 | "Paraguay",1999,5240321 468 | "Peru",1999,25611482 469 | "Philippines",1999,76018006 470 | "Poland",1999,38390217 471 | "Portugal",1999,10263532 472 | "Republic of Korea",1999,45742103 473 | "Republic of Moldova",1999,4167552 474 | "Romania",1999,22484940 475 | "Russian Federation",1999,147275875 476 | "Rwanda",1999,7853015 477 | "Saudi Arabia",1999,19620692 478 | "Senegal",1999,9618564 479 | "Sierra Leone",1999,4030443 480 | "Somalia",1999,7149044 481 | "South Africa",1999,44195890 482 | "Spain",1999,39944692 483 | "Sri Lanka",1999,18695041 484 | "Sudan",1999,33447666 485 | "Swaziland",1999,1048151 486 | "Syrian Arab Republic",1999,15995760 487 | "Tajikistan",1999,6094661 488 | "Thailand",1999,61623143 489 | "Togo",1999,4740974 490 | "Turkey",1999,62243779 491 | "Uganda",1999,23507800 492 | "Ukraine",1999,49510626 493 | "United Kingdom of Great Britain and Northern Ireland",1999,58735006 494 | "United Republic of Tanzania",1999,33183093 495 | "United States of America",1999,281419130 496 | "Uzbekistan",1999,24517962 497 | "Venezuela (Bolivarian Republic of)",1999,23945002 498 | "Viet Nam",1999,80027521 499 | "Yemen",1999,17035531 500 | "Zambia",1999,9839179 501 | "Zimbabwe",1999,12384727 502 | "Afghanistan",2000,20595360 503 | "Algeria",2000,31719449 504 | "Angola",2000,13924930 505 | "Argentina",2000,36903067 506 | "Azerbaijan",2000,8117742 507 | "Bangladesh",2000,132383265 508 | "Belarus",2000,9981460 509 | "Benin",2000,6949366 510 | "Bolivia (Plurinational State of)",2000,8495271 511 | "Botswana",2000,1755375 512 | "Brazil",2000,174504898 513 | "Burkina Faso",2000,11607944 514 | "Burundi",2000,6674286 515 | "Cambodia",2000,12222871 516 | "Cameroon",2000,15927713 517 | "Central African Republic",2000,3638316 518 | "Chad",2000,8301151 519 | "Chile",2000,15454402 520 | "China",2000,1280428583 521 | "China, Hong Kong SAR",2000,6835301 522 | "Colombia",2000,39897984 523 | "Congo",2000,3126204 524 | "Côte d'Ivoire",2000,16131332 525 | "Democratic People's Republic of Korea",2000,22840225 526 | "Democratic Republic of the Congo",2000,46949244 527 | "Djibouti",2000,722887 528 | "Dominican Republic",2000,8663421 529 | "Ecuador",2000,12533087 530 | "Egypt",2000,66136590 531 | "Ethiopia",2000,66024199 532 | "France",2000,59213096 533 | "Georgia",2000,4743591 534 | "Germany",2000,83512459 535 | "Ghana",2000,18825034 536 | "Guatemala",2000,11204183 537 | "Guinea",2000,8746128 538 | "Haiti",2000,8578234 539 | "Honduras",2000,6235561 540 | "India",2000,1042261758 541 | "Indonesia",2000,208938698 542 | "Iran (Islamic Republic of)",2000,65911052 543 | "Iraq",2000,23801156 544 | "Italy",2000,56986085 545 | "Japan",2000,125714674 546 | "Kazakhstan",2000,14575644 547 | "Kenya",2000,31285050 548 | "Kyrgyzstan",2000,4954850 549 | "Lao People's Democratic Republic",2000,5388281 550 | "Lesotho",2000,1856225 551 | "Liberia",2000,2891968 552 | "Madagascar",2000,15744811 553 | "Malawi",2000,11321496 554 | "Malaysia",2000,23420751 555 | "Mali",2000,10260577 556 | "Mexico",2000,103873607 557 | "Mongolia",2000,2397473 558 | "Morocco",2000,28710123 559 | "Mozambique",2000,18275618 560 | "Myanmar",2000,48453000 561 | "Namibia",2000,1897953 562 | "Nepal",2000,23184177 563 | "Nicaragua",2000,5100920 564 | "Niger",2000,10989815 565 | "Nigeria",2000,122876727 566 | "Pakistan",2000,143832014 567 | "Paraguay",2000,5350253 568 | "Peru",2000,26000080 569 | "Philippines",2000,77651848 570 | "Poland",2000,38351437 571 | "Portugal",2000,10306192 572 | "Republic of Korea",2000,45977210 573 | "Republic of Moldova",2000,4107184 574 | "Romania",2000,22388354 575 | "Russian Federation",2000,146762881 576 | "Rwanda",2000,8395577 577 | "Saudi Arabia",2000,20144584 578 | "Senegal",2000,9861679 579 | "Sierra Leone",2000,4139757 580 | "Somalia",2000,7385416 581 | "South Africa",2000,44846286 582 | "Spain",2000,40282828 583 | "Sri Lanka",2000,18846401 584 | "Sudan",2000,34382782 585 | "Swaziland",2000,1063715 586 | "Syrian Arab Republic",2000,16371208 587 | "Tajikistan",2000,6186152 588 | "Thailand",2000,62343379 589 | "Togo",2000,4864753 590 | "Turkey",2000,63174483 591 | "Uganda",2000,24275641 592 | "Ukraine",2000,49057226 593 | "United Kingdom of Great Britain and Northern Ireland",2000,58951444 594 | "United Republic of Tanzania",2000,34020512 595 | "United States of America",2000,284594395 596 | "Uzbekistan",2000,24828562 597 | "Venezuela (Bolivarian Republic of)",2000,24407553 598 | "Viet Nam",2000,80887879 599 | "Yemen",2000,17522537 600 | "Zambia",2000,10100981 601 | "Zimbabwe",2000,12503652 602 | "Afghanistan",2001,21347782 603 | "Algeria",2001,32150198 604 | "Angola",2001,14385283 605 | "Argentina",2001,37273361 606 | "Azerbaijan",2001,8195427 607 | "Bangladesh",2001,134729503 608 | "Belarus",2001,9920173 609 | "Benin",2001,7174911 610 | "Bolivia (Plurinational State of)",2001,8669066 611 | "Botswana",2001,1783349 612 | "Brazil",2001,176968205 613 | "Burkina Faso",2001,11946080 614 | "Burundi",2001,6839376 615 | "Cambodia",2001,12472586 616 | "Cameroon",2001,16350440 617 | "Central African Republic",2001,3704045 618 | "Chad",2001,8620917 619 | "Chile",2001,15639289 620 | "China",2001,1287890449 621 | "China, Hong Kong SAR",2001,6892752 622 | "Colombia",2001,40558648 623 | "Congo",2001,3205636 624 | "Côte d'Ivoire",2001,16420173 625 | "Democratic People's Republic of Korea",2001,23043449 626 | "Democratic Republic of the Congo",2001,48167045 627 | "Djibouti",2001,733732 628 | "Dominican Republic",2001,8799298 629 | "Ecuador",2001,12780869 630 | "Egypt",2001,67204189 631 | "Ethiopia",2001,67956866 632 | "France",2001,59600714 633 | "Georgia",2001,4682290 634 | "Germany",2001,83583461 635 | "Ghana",2001,19293392 636 | "Guatemala",2001,11478984 637 | "Guinea",2001,8895353 638 | "Haiti",2001,8720247 639 | "Honduras",2001,6365040 640 | "India",2001,1059500888 641 | "Indonesia",2001,211970371 642 | "Iran (Islamic Republic of)",2001,66857624 643 | "Iraq",2001,24516842 644 | "Italy",2001,57200233 645 | "Japan",2001,125973930 646 | "Kazakhstan",2001,14559255 647 | "Kenya",2001,32126351 648 | "Kyrgyzstan",2001,4988162 649 | "Lao People's Democratic Republic",2001,5470169 650 | "Lesotho",2001,1871500 651 | "Liberia",2001,2998770 652 | "Madagascar",2001,16235767 653 | "Malawi",2001,11623166 654 | "Malaysia",2001,23925742 655 | "Mali",2001,10562768 656 | "Mexico",2001,105339877 657 | "Mongolia",2001,2419669 658 | "Morocco",2001,29021156 659 | "Mozambique",2001,18785719 660 | "Myanmar",2001,48894203 661 | "Namibia",2001,1931282 662 | "Nepal",2001,23655119 663 | "Nicaragua",2001,5176685 664 | "Niger",2001,11396434 665 | "Nigeria",2001,126004992 666 | "Pakistan",2001,146857081 667 | "Paraguay",2001,5460621 668 | "Peru",2001,26372358 669 | "Philippines",2001,79297756 670 | "Poland",2001,38314744 671 | "Portugal",2001,10350660 672 | "Republic of Korea",2001,46192932 673 | "Republic of Moldova",2001,4040579 674 | "Romania",2001,22310092 675 | "Russian Federation",2001,146170247 676 | "Rwanda",2001,8760003 677 | "Saudi Arabia",2001,20891594 678 | "Senegal",2001,10119118 679 | "Sierra Leone",2001,4295667 680 | "Somalia",2001,7609265 681 | "South Africa",2001,45513217 682 | "Spain",2001,40756675 683 | "Sri Lanka",2001,19037119 684 | "Sudan",2001,35359265 685 | "Swaziland",2001,1074761 686 | "Syrian Arab Republic",2001,16700984 687 | "Tajikistan",2001,6289340 688 | "Thailand",2001,63069070 689 | "Togo",2001,4992225 690 | "Turkey",2001,64100297 691 | "Uganda",2001,25088033 692 | "Ukraine",2001,48620596 693 | "United Kingdom of Great Britain and Northern Ireland",2001,59183774 694 | "United Republic of Tanzania",2001,34895398 695 | "United States of America",2001,287532638 696 | "Uzbekistan",2001,25098636 697 | "Venezuela (Bolivarian Republic of)",2001,24870441 698 | "Viet Nam",2001,81728768 699 | "Yemen",2001,18029989 700 | "Zambia",2001,10362137 701 | "Zimbabwe",2001,12586763 702 | "Afghanistan",2002,22202806 703 | "Algeria",2002,32572977 704 | "Angola",2002,14886574 705 | "Argentina",2002,37627545 706 | "Azerbaijan",2002,8279768 707 | "Bangladesh",2002,137006279 708 | "Belarus",2002,9852866 709 | "Benin",2002,7414744 710 | "Bolivia (Plurinational State of)",2002,8843350 711 | "Botswana",2002,1808976 712 | "Brazil",2002,179393768 713 | "Burkina Faso",2002,12296399 714 | "Burundi",2002,7037727 715 | "Cambodia",2002,12709336 716 | "Cameroon",2002,16782044 717 | "Central African Republic",2002,3767248 718 | "Chad",2002,8959964 719 | "Chile",2002,15819522 720 | "China",2002,1295322020 721 | "China, Hong Kong SAR",2002,6912079 722 | "Colombia",2002,41216304 723 | "Congo",2002,3283719 724 | "Côte d'Ivoire",2002,16674987 725 | "Democratic People's Republic of Korea",2002,23248059 726 | "Democratic Republic of the Congo",2002,49516960 727 | "Djibouti",2002,744434 728 | "Dominican Republic",2002,8935261 729 | "Ecuador",2002,13030041 730 | "Egypt",2002,68302914 731 | "Ethiopia",2002,69948344 732 | "France",2002,60047743 733 | "Georgia",2002,4621837 734 | "Germany",2002,83685160 735 | "Ghana",2002,19786307 736 | "Guatemala",2002,11765738 737 | "Guinea",2002,9045748 738 | "Haiti",2002,8859635 739 | "Honduras",2002,6495801 740 | "India",2002,1076705723 741 | "Indonesia",2002,215038285 742 | "Iran (Islamic Republic of)",2002,67727274 743 | "Iraq",2002,25238267 744 | "Italy",2002,57501450 745 | "Japan",2002,126249090 746 | "Kazakhstan",2002,14623188 747 | "Kenya",2002,33000524 748 | "Kyrgyzstan",2002,5003394 749 | "Lao People's Democratic Republic",2002,5545245 750 | "Lesotho",2002,1885487 751 | "Liberia",2002,3070673 752 | "Madagascar",2002,16736029 753 | "Malawi",2002,11926778 754 | "Malaysia",2002,24413795 755 | "Mali",2002,10882662 756 | "Mexico",2002,106723661 757 | "Mongolia",2002,2443231 758 | "Morocco",2002,29311443 759 | "Mozambique",2002,19319894 760 | "Myanmar",2002,49261313 761 | "Namibia",2002,1958303 762 | "Nepal",2002,24102862 763 | "Nicaragua",2002,5248577 764 | "Niger",2002,11817297 765 | "Nigeria",2002,129224641 766 | "Pakistan",2002,149693684 767 | "Paraguay",2002,5571371 768 | "Peru",2002,26729909 769 | "Philippines",2002,80953652 770 | "Poland",2002,38280547 771 | "Portugal",2002,10395630 772 | "Republic of Korea",2002,46393993 773 | "Republic of Moldova",2002,3969040 774 | "Romania",2002,22249564 775 | "Russian Federation",2002,145520813 776 | "Rwanda",2002,8987523 777 | "Saudi Arabia",2002,21825217 778 | "Senegal",2002,10390050 779 | "Sierra Leone",2002,4493047 780 | "Somalia",2002,7825924 781 | "South Africa",2002,46187794 782 | "Spain",2002,41346738 783 | "Sri Lanka",2002,19260853 784 | "Sudan",2002,36373247 785 | "Swaziland",2002,1082183 786 | "Syrian Arab Republic",2002,16994676 787 | "Tajikistan",2002,6404118 788 | "Thailand",2002,63797841 789 | "Togo",2002,5123674 790 | "Turkey",2002,65022300 791 | "Uganda",2002,25943441 792 | "Ukraine",2002,48200504 793 | "United Kingdom of Great Britain and Northern Ireland",2002,59431937 794 | "United Republic of Tanzania",2002,35806497 795 | "United States of America",2002,290270187 796 | "Uzbekistan",2002,25334021 797 | "Venezuela (Bolivarian Republic of)",2002,25333622 798 | "Viet Nam",2002,82547682 799 | "Yemen",2002,18551068 800 | "Zambia",2002,10625423 801 | "Zimbabwe",2002,12640922 802 | "Afghanistan",2003,23116142 803 | "Algeria",2003,33003442 804 | "Angola",2003,15421075 805 | "Argentina",2003,37970411 806 | "Azerbaijan",2003,8370169 807 | "Bangladesh",2003,139185986 808 | "Belarus",2003,9784111 809 | "Benin",2003,7665681 810 | "Bolivia (Plurinational State of)",2003,9016787 811 | "Botswana",2003,1832602 812 | "Brazil",2003,181752951 813 | "Burkina Faso",2003,12659086 814 | "Burundi",2003,7264340 815 | "Cambodia",2003,12934369 816 | "Cameroon",2003,17223277 817 | "Central African Republic",2003,3829636 818 | "Chad",2003,9311234 819 | "Chile",2003,15995658 820 | "China",2003,1302810258 821 | "China, Hong Kong SAR",2003,6906631 822 | "Colombia",2003,41872051 823 | "Congo",2003,3363418 824 | "Côte d'Ivoire",2003,16909801 825 | "Democratic People's Republic of Korea",2003,23449180 826 | "Democratic Republic of the Congo",2003,50972323 827 | "Djibouti",2003,755085 828 | "Dominican Republic",2003,9071318 829 | "Ecuador",2003,13279806 830 | "Egypt",2003,69432477 831 | "Ethiopia",2003,71989666 832 | "France",2003,60527640 833 | "Georgia",2003,4564938 834 | "Germany",2003,83788480 835 | "Ghana",2003,20301686 836 | "Guatemala",2003,12062835 837 | "Guinea",2003,9204581 838 | "Haiti",2003,8996229 839 | "Honduras",2003,6628171 840 | "India",2003,1093786762 841 | "Indonesia",2003,218145617 842 | "Iran (Islamic Republic of)",2003,68543171 843 | "Iraq",2003,25959531 844 | "Italy",2003,57868021 845 | "Japan",2003,126523597 846 | "Kazakhstan",2003,14747754 847 | "Kenya",2003,33905011 848 | "Kyrgyzstan",2003,5009453 849 | "Lao People's Democratic Republic",2003,5619069 850 | "Lesotho",2003,1898757 851 | "Liberia",2003,3124222 852 | "Madagascar",2003,17245275 853 | "Malawi",2003,12238739 854 | "Malaysia",2003,24890654 855 | "Mali",2003,11219737 856 | "Mexico",2003,108056312 857 | "Mongolia",2003,2468595 858 | "Morocco",2003,29586937 859 | "Mozambique",2003,19873460 860 | "Myanmar",2003,49577152 861 | "Namibia",2003,1981237 862 | "Nepal",2003,24525527 863 | "Nicaragua",2003,5317878 864 | "Niger",2003,12254040 865 | "Nigeria",2003,132550146 866 | "Pakistan",2003,152419974 867 | "Paraguay",2003,5682350 868 | "Peru",2003,27073334 869 | "Philippines",2003,82604681 870 | "Poland",2003,38250426 871 | "Portugal",2003,10439031 872 | "Republic of Korea",2003,46591762 873 | "Republic of Moldova",2003,3896494 874 | "Romania",2003,22201592 875 | "Russian Federation",2003,144879644 876 | "Rwanda",2003,9126167 877 | "Saudi Arabia",2003,22852333 878 | "Senegal",2003,10673535 879 | "Sierra Leone",2003,4712763 880 | "Somalia",2003,8037706 881 | "South Africa",2003,46869028 882 | "Spain",2003,42015864 883 | "Sri Lanka",2003,19501969 884 | "Sudan",2003,37423884 885 | "Swaziland",2003,1087929 886 | "Syrian Arab Republic",2003,17298476 887 | "Tajikistan",2003,6529609 888 | "Thailand",2003,64488338 889 | "Togo",2003,5258956 890 | "Turkey",2003,65938265 891 | "Uganda",2003,26838428 892 | "Ukraine",2003,47807199 893 | "United Kingdom of Great Britain and Northern Ireland",2003,59697954 894 | "United Republic of Tanzania",2003,36760831 895 | "United States of America",2003,292883010 896 | "Uzbekistan",2003,25553928 897 | "Venezuela (Bolivarian Republic of)",2003,25797219 898 | "Viet Nam",2003,83352595 899 | "Yemen",2003,19081306 900 | "Zambia",2003,10894519 901 | "Zimbabwe",2003,12673103 902 | "Afghanistan",2004,24018682 903 | "Algeria",2004,33461345 904 | "Angola",2004,15976715 905 | "Argentina",2004,38308779 906 | "Azerbaijan",2004,8465127 907 | "Bangladesh",2004,141235035 908 | "Belarus",2004,9719991 909 | "Benin",2004,7922796 910 | "Bolivia (Plurinational State of)",2004,9187610 911 | "Botswana",2004,1854739 912 | "Brazil",2004,184010283 913 | "Burkina Faso",2004,13034258 914 | "Burundi",2004,7510771 915 | "Cambodia",2004,13149386 916 | "Cameroon",2004,17674960 917 | "Central African Republic",2004,3893595 918 | "Chad",2004,9665024 919 | "Chile",2004,16168241 920 | "China",2004,1310414386 921 | "China, Hong Kong SAR",2004,6896523 922 | "Colombia",2004,42527623 923 | "Congo",2004,3448868 924 | "Côte d'Ivoire",2004,17144325 925 | "Democratic People's Republic of Korea",2004,23639303 926 | "Democratic Republic of the Congo",2004,52487293 927 | "Djibouti",2004,765776 928 | "Dominican Republic",2004,9207389 929 | "Ecuador",2004,13529091 930 | "Egypt",2004,70591288 931 | "Ethiopia",2004,74066147 932 | "France",2004,61002537 933 | "Georgia",2004,4515280 934 | "Germany",2004,83848844 935 | "Ghana",2004,20835514 936 | "Guatemala",2004,12367800 937 | "Guinea",2004,9379621 938 | "Haiti",2004,9129933 939 | "Honduras",2004,6762426 940 | "India",2004,1110626108 941 | "Indonesia",2004,221293797 942 | "Iran (Islamic Republic of)",2004,69342126 943 | "Iraq",2004,26673536 944 | "Italy",2004,58267068 945 | "Japan",2004,126772899 946 | "Kazakhstan",2004,14902452 947 | "Kenya",2004,34834606 948 | "Kyrgyzstan",2004,5019310 949 | "Lao People's Democratic Republic",2004,5699112 950 | "Lesotho",2004,1912022 951 | "Liberia",2004,3184643 952 | "Madagascar",2004,17763367 953 | "Malawi",2004,12569091 954 | "Malaysia",2004,25365089 955 | "Mali",2004,11572936 956 | "Mexico",2004,109381550 957 | "Mongolia",2004,2496248 958 | "Morocco",2004,29855820 959 | "Mozambique",2004,20438827 960 | "Myanmar",2004,49875169 961 | "Namibia",2004,2003320 962 | "Nepal",2004,24921910 963 | "Nicaragua",2004,5386299 964 | "Niger",2004,12708897 965 | "Nigeria",2004,135999250 966 | "Pakistan",2004,155151394 967 | "Paraguay",2004,5793330 968 | "Peru",2004,27403845 969 | "Philippines",2004,84231329 970 | "Poland",2004,38225455 971 | "Portugal",2004,10478122 972 | "Republic of Korea",2004,46801310 973 | "Republic of Moldova",2004,3827963 974 | "Romania",2004,22158163 975 | "Russian Federation",2004,144331352 976 | "Rwanda",2004,9254379 977 | "Saudi Arabia",2004,23839231 978 | "Senegal",2004,10967568 979 | "Sierra Leone",2004,4928175 980 | "Somalia",2004,8249965 981 | "South Africa",2004,47553025 982 | "Spain",2004,42710301 983 | "Sri Lanka",2004,19737578 984 | "Sudan",2004,38508752 985 | "Swaziland",2004,1094758 986 | "Syrian Arab Republic",2004,17676012 987 | "Tajikistan",2004,6663929 988 | "Thailand",2004,65087400 989 | "Togo",2004,5397851 990 | "Turkey",2004,66845635 991 | "Uganda",2004,27766986 992 | "Ukraine",2004,47450472 993 | "United Kingdom of Great Britain and Northern Ireland",2004,59984118 994 | "United Republic of Tanzania",2004,37765139 995 | "United States of America",2004,295487267 996 | "Uzbekistan",2004,25784397 997 | "Venezuela (Bolivarian Republic of)",2004,26261326 998 | "Viet Nam",2004,84150651 999 | "Yemen",2004,19612696 1000 | "Zambia",2004,11174650 1001 | "Zimbabwe",2004,12693047 1002 | "Afghanistan",2005,24860855 1003 | "Algeria",2005,33960903 1004 | "Angola",2005,16544376 1005 | "Argentina",2005,38647854 1006 | "Azerbaijan",2005,8563398 1007 | "Bangladesh",2005,143135180 1008 | "Belarus",2005,9664714 1009 | "Benin",2005,8182362 1010 | "Bolivia (Plurinational State of)",2005,9354709 1011 | "Botswana",2005,1875805 1012 | "Brazil",2005,186142403 1013 | "Burkina Faso",2005,13421929 1014 | "Burundi",2005,7770392 1015 | "Cambodia",2005,13356424 1016 | "Cameroon",2005,18137734 1017 | "Central African Republic",2005,3960897 1018 | "Chad",2005,10014413 1019 | "Chile",2005,16337749 1020 | "China",2005,1318176835 1021 | "China, Hong Kong SAR",2005,6896686 1022 | "Colombia",2005,43184026 1023 | "Congo",2005,3542867 1024 | "Côte d'Ivoire",2005,17393994 1025 | "Democratic People's Republic of Korea",2005,23813333 1026 | "Democratic Republic of the Congo",2005,54028003 1027 | "Djibouti",2005,776585 1028 | "Dominican Republic",2005,9343362 1029 | "Ecuador",2005,13777131 1030 | "Egypt",2005,71777678 1031 | "Ethiopia",2005,76167240 1032 | "France",2005,61444972 1033 | "Georgia",2005,4475306 1034 | "Germany",2005,83835978 1035 | "Ghana",2005,21384034 1036 | "Guatemala",2005,12678919 1037 | "Guinea",2005,9576331 1038 | "Haiti",2005,9260879 1039 | "Honduras",2005,6898825 1040 | "India",2005,1127143548 1041 | "Indonesia",2005,224480901 1042 | "Iran (Islamic Republic of)",2005,70152384 1043 | "Iraq",2005,27377045 1044 | "Italy",2005,58671855 1045 | "Japan",2005,126978754 1046 | "Kazakhstan",2005,15064088 1047 | "Kenya",2005,35785718 1048 | "Kyrgyzstan",2005,5042381 1049 | "Lao People's Democratic Republic",2005,5790646 1050 | "Lesotho",2005,1925844 1051 | "Liberia",2005,3269786 1052 | "Madagascar",2005,18290394 1053 | "Malawi",2005,12924746 1054 | "Malaysia",2005,25843466 1055 | "Mali",2005,11941258 1056 | "Mexico",2005,110731826 1057 | "Mongolia",2005,2526502 1058 | "Morocco",2005,30125445 1059 | "Mozambique",2005,21010376 1060 | "Myanmar",2005,50181020 1061 | "Namibia",2005,2027026 1062 | "Nepal",2005,25292058 1063 | "Nicaragua",2005,5455219 1064 | "Niger",2005,13183798 1065 | "Nigeria",2005,139585891 1066 | "Pakistan",2005,157971415 1067 | "Paraguay",2005,5904170 1068 | "Peru",2005,27723281 1069 | "Philippines",2005,85821214 1070 | "Poland",2005,38206337 1071 | "Portugal",2005,10510967 1072 | "Republic of Korea",2005,47033082 1073 | "Republic of Moldova",2005,3767077 1074 | "Romania",2005,22113264 1075 | "Russian Federation",2005,143932966 1076 | "Rwanda",2005,9429457 1077 | "Saudi Arabia",2005,24690067 1078 | "Senegal",2005,11270826 1079 | "Sierra Leone",2005,5119895 1080 | "Somalia",2005,8466938 1081 | "South Africa",2005,48235291 1082 | "Spain",2005,43387477 1083 | "Sri Lanka",2005,19951291 1084 | "Sudan",2005,39625222 1085 | "Swaziland",2005,1104642 1086 | "Syrian Arab Republic",2005,18167367 1087 | "Tajikistan",2005,6805655 1088 | "Thailand",2005,65559487 1089 | "Togo",2005,5540214 1090 | "Turkey",2005,67743052 1091 | "Uganda",2005,28724869 1092 | "Ukraine",2005,47135932 1093 | "United Kingdom of Great Britain and Northern Ireland",2005,60291414 1094 | "United Republic of Tanzania",2005,38824384 1095 | "United States of America",2005,298165797 1096 | "Uzbekistan",2005,26044401 1097 | "Venezuela (Bolivarian Republic of)",2005,26725897 1098 | "Viet Nam",2005,84947852 1099 | "Yemen",2005,20139661 1100 | "Zambia",2005,11470022 1101 | "Zimbabwe",2005,12710589 1102 | "Afghanistan",2006,25631282 1103 | "Algeria",2006,34507214 1104 | "Angola",2006,17122409 1105 | "Argentina",2006,38988923 1106 | "Azerbaijan",2006,8665006 1107 | "Bangladesh",2006,144868702 1108 | "Belarus",2006,9620359 1109 | "Benin",2006,8443671 1110 | "Bolivia (Plurinational State of)",2006,9517395 1111 | "Botswana",2006,1895944 1112 | "Brazil",2006,188134315 1113 | "Burkina Faso",2006,13822257 1114 | "Burundi",2006,8042579 1115 | "Cambodia",2006,13555054 1116 | "Cameroon",2006,18611937 1117 | "Central African Republic",2006,4032102 1118 | "Chad",2006,10356822 1119 | "Chile",2006,16504530 1120 | "China",2006,1326146433 1121 | "China, Hong Kong SAR",2006,6910671 1122 | "Colombia",2006,43841370 1123 | "Congo",2006,3646653 1124 | "Côte d'Ivoire",2006,17662417 1125 | "Democratic People's Republic of Korea",2006,23969917 1126 | "Democratic Republic of the Congo",2006,55590838 1127 | "Djibouti",2006,787544 1128 | "Dominican Republic",2006,9479269 1129 | "Ecuador",2006,14023503 1130 | "Egypt",2006,72990754 1131 | "Ethiopia",2006,78290649 1132 | "France",2006,61845239 1133 | "Georgia",2006,4446032 1134 | "Germany",2006,83740302 1135 | "Ghana",2006,21947779 1136 | "Guatemala",2006,12995374 1137 | "Guinea",2006,9798963 1138 | "Haiti",2006,9388642 1139 | "Honduras",2006,7037428 1140 | "India",2006,1143289350 1141 | "Indonesia",2006,227709821 1142 | "Iran (Islamic Republic of)",2006,70976584 1143 | "Iraq",2006,28064095 1144 | "Italy",2006,59078271 1145 | "Japan",2006,127136020 1146 | "Kazakhstan",2006,15227211 1147 | "Kenya",2006,36757498 1148 | "Kyrgyzstan",2006,5081620 1149 | "Lao People's Democratic Republic",2006,5895930 1150 | "Lesotho",2006,1940413 1151 | "Liberia",2006,3384791 1152 | "Madagascar",2006,18826126 1153 | "Malawi",2006,13307535 1154 | "Malaysia",2006,26327098 1155 | "Mali",2006,12325545 1156 | "Mexico",2006,112116694 1157 | "Mongolia",2006,2559496 1158 | "Morocco",2006,30395097 1159 | "Mozambique",2006,21587317 1160 | "Myanmar",2006,50500070 1161 | "Namibia",2006,2052931 1162 | "Nepal",2006,25634043 1163 | "Nicaragua",2006,5524927 1164 | "Niger",2006,13679705 1165 | "Nigeria",2006,143314909 1166 | "Pakistan",2006,160905794 1167 | "Paraguay",2006,6014781 1168 | "Peru",2006,28030688 1169 | "Philippines",2006,87366573 1170 | "Poland",2006,38194163 1171 | "Portugal",2006,10536701 1172 | "Republic of Korea",2006,47291491 1173 | "Republic of Moldova",2006,3715541 1174 | "Romania",2006,22065409 1175 | "Russian Federation",2006,143715023 1176 | "Rwanda",2006,9660946 1177 | "Saudi Arabia",2006,25371936 1178 | "Senegal",2006,11582925 1179 | "Sierra Leone",2006,5280909 1180 | "Somalia",2006,8687671 1181 | "South Africa",2006,48919359 1182 | "Spain",2006,44038456 1183 | "Sri Lanka",2006,20137560 1184 | "Sudan",2006,40774428 1185 | "Swaziland",2006,1118253 1186 | "Syrian Arab Republic",2006,18804914 1187 | "Tajikistan",2006,6954522 1188 | "Thailand",2006,65883961 1189 | "Togo",2006,5685845 1190 | "Turkey",2006,68626337 1191 | "Uganda",2006,29711397 1192 | "Ukraine",2006,46871328 1193 | "United Kingdom of Great Britain and Northern Ireland",2006,60620907 1194 | "United Republic of Tanzania",2006,39942347 1195 | "United States of America",2006,300942917 1196 | "Uzbekistan",2006,26340696 1197 | "Venezuela (Bolivarian Republic of)",2006,27190882 1198 | "Viet Nam",2006,85747625 1199 | "Yemen",2006,20661714 1200 | "Zambia",2006,11781612 1201 | "Zimbabwe",2006,12724308 1202 | "Afghanistan",2007,26349243 1203 | "Algeria",2007,35097043 1204 | "Angola",2007,17712824 1205 | "Argentina",2007,39331357 1206 | "Azerbaijan",2007,8770122 1207 | "Bangladesh",2007,146457067 1208 | "Belarus",2007,9585368 1209 | "Benin",2007,8707490 1210 | "Bolivia (Plurinational State of)",2007,9676456 1211 | "Botswana",2007,1915187 1212 | "Brazil",2007,189996976 1213 | "Burkina Faso",2007,14235075 1214 | "Burundi",2007,8328312 1215 | "Cambodia",2007,13747288 1216 | "Cameroon",2007,19097676 1217 | "Central African Republic",2007,4106897 1218 | "Chad",2007,10694366 1219 | "Chile",2007,16668892 1220 | "China",2007,1334343509 1221 | "China, Hong Kong SAR",2007,6934748 1222 | "Colombia",2007,44498390 1223 | "Congo",2007,3758858 1224 | "Côte d'Ivoire",2007,17949061 1225 | "Democratic People's Republic of Korea",2007,24111989 1226 | "Democratic Republic of the Congo",2007,57187942 1227 | "Djibouti",2007,798690 1228 | "Dominican Republic",2007,9615015 1229 | "Ecuador",2007,14268397 1230 | "Egypt",2007,74229577 1231 | "Ethiopia",2007,80440708 1232 | "France",2007,62210877 1233 | "Georgia",2007,4426077 1234 | "Germany",2007,83578794 1235 | "Ghana",2007,22525659 1236 | "Guatemala",2007,13317931 1237 | "Guinea",2007,10046967 1238 | "Haiti",2007,9513714 1239 | "Honduras",2007,7178436 1240 | "India",2007,1159095250 1241 | "Indonesia",2007,230972808 1242 | "Iran (Islamic Republic of)",2007,71809219 1243 | "Iraq",2007,28740630 1244 | "Italy",2007,59485505 1245 | "Japan",2007,127248855 1246 | "Kazakhstan",2007,15396045 1247 | "Kenya",2007,37752304 1248 | "Kyrgyzstan",2007,5134297 1249 | "Lao People's Democratic Republic",2007,6013278 1250 | "Lesotho",2007,1955784 1251 | "Liberia",2007,3522294 1252 | "Madagascar",2007,19371023 1253 | "Malawi",2007,13713758 1254 | "Malaysia",2007,26813819 1255 | "Mali",2007,12725629 1256 | "Mexico",2007,113529819 1257 | "Mongolia",2007,2595068 1258 | "Morocco",2007,30667086 1259 | "Mozambique",2007,22171404 1260 | "Myanmar",2007,50828959 1261 | "Namibia",2007,2080700 1262 | "Nepal",2007,25950022 1263 | "Nicaragua",2007,5595533 1264 | "Niger",2007,14197289 1265 | "Nigeria",2007,147187353 1266 | "Pakistan",2007,163928329 1267 | "Paraguay",2007,6125285 1268 | "Peru",2007,28328410 1269 | "Philippines",2007,88875548 1270 | "Poland",2007,38189136 1271 | "Portugal",2007,10555902 1272 | "Republic of Korea",2007,47572585 1273 | "Republic of Moldova",2007,3672638 1274 | "Romania",2007,22015937 1275 | "Russian Federation",2007,143652377 1276 | "Rwanda",2007,9928143 1277 | "Saudi Arabia",2007,25915624 1278 | "Senegal",2007,11904974 1279 | "Sierra Leone",2007,5416015 1280 | "Somalia",2007,8910851 1281 | "South Africa",2007,49602778 1282 | "Spain",2007,44664067 1283 | "Sri Lanka",2007,20301912 1284 | "Sudan",2007,41954986 1285 | "Swaziland",2007,1134977 1286 | "Syrian Arab Republic",2007,19561477 1287 | "Tajikistan",2007,7111025 1288 | "Thailand",2007,66076927 1289 | "Togo",2007,5834806 1290 | "Turkey",2007,69496513 1291 | "Uganda",2007,30728747 1292 | "Ukraine",2007,46653183 1293 | "United Kingdom of Great Britain and Northern Ireland",2007,60970360 1294 | "United Republic of Tanzania",2007,41119693 1295 | "United States of America",2007,303786752 1296 | "Uzbekistan",2007,26668950 1297 | "Venezuela (Bolivarian Republic of)",2007,27655937 1298 | "Viet Nam",2007,86553201 1299 | "Yemen",2007,21182162 1300 | "Zambia",2007,12109620 1301 | "Zimbabwe",2007,12740160 1302 | "Afghanistan",2008,27032197 1303 | "Algeria",2008,35725377 1304 | "Angola",2008,18314441 1305 | "Argentina",2008,39676083 1306 | "Azerbaijan",2008,8877669 1307 | "Bangladesh",2008,147969967 1308 | "Belarus",2008,9555801 1309 | "Benin",2008,8973293 1310 | "Bolivia (Plurinational State of)",2008,9834098 1311 | "Botswana",2008,1933719 1312 | "Brazil",2008,191765567 1313 | "Burkina Faso",2008,14659646 1314 | "Burundi",2008,8624280 1315 | "Cambodia",2008,13940518 1316 | "Cameroon",2008,19595026 1317 | "Central African Republic",2008,4185106 1318 | "Chad",2008,11030628 1319 | "Chile",2008,16831184 1320 | "China",2008,1342732604 1321 | "China, Hong Kong SAR",2008,6967866 1322 | "Colombia",2008,45153037 1323 | "Congo",2008,3876475 1324 | "Côte d'Ivoire",2008,18260044 1325 | "Democratic People's Republic of Korea",2008,24243894 1326 | "Democratic Republic of the Congo",2008,58819038 1327 | "Djibouti",2008,810100 1328 | "Dominican Republic",2008,9750195 1329 | "Ecuador",2008,14512402 1330 | "Egypt",2008,75491922 1331 | "Ethiopia",2008,82621190 1332 | "France",2008,62552614 1333 | "Georgia",2008,4412502 1334 | "Germany",2008,83379538 1335 | "Ghana",2008,23110139 1336 | "Guatemala",2008,13648307 1337 | "Guinea",2008,10314678 1338 | "Haiti",2008,9638255 1339 | "Honduras",2008,7322368 1340 | "India",2008,1174662334 1341 | "Indonesia",2008,234243489 1342 | "Iran (Islamic Republic of)",2008,72660887 1343 | "Iraq",2008,29429829 1344 | "Italy",2008,59873820 1345 | "Japan",2008,127319434 1346 | "Kazakhstan",2008,15568294 1347 | "Kenya",2008,38773277 1348 | "Kyrgyzstan",2008,5197274 1349 | "Lao People's Democratic Republic",2008,6139127 1350 | "Lesotho",2008,1972199 1351 | "Liberia",2008,3672714 1352 | "Madagascar",2008,19926785 1353 | "Malawi",2008,14138207 1354 | "Malaysia",2008,27302348 1355 | "Mali",2008,13138299 1356 | "Mexico",2008,114968039 1357 | "Mongolia",2008,2632834 1358 | "Morocco",2008,30955151 1359 | "Mozambique",2008,22762525 1360 | "Myanmar",2008,51174018 1361 | "Namibia",2008,2110791 1362 | "Nepal",2008,26249412 1363 | "Nicaragua",2008,5667983 1364 | "Niger",2008,14737895 1365 | "Nigeria",2008,151208080 1366 | "Pakistan",2008,167008083 1367 | "Paraguay",2008,6236005 1368 | "Peru",2008,28625628 1369 | "Philippines",2008,90371287 1370 | "Poland",2008,38189735 1371 | "Portugal",2008,10569881 1372 | "Republic of Korea",2008,47867970 1373 | "Republic of Moldova",2008,3636510 1374 | "Romania",2008,21964962 1375 | "Russian Federation",2008,143677033 1376 | "Rwanda",2008,10222961 1377 | "Saudi Arabia",2008,26366358 1378 | "Senegal",2008,12238791 1379 | "Sierra Leone",2008,5532139 1380 | "Somalia",2008,9140259 1381 | "South Africa",2008,50267488 1382 | "Spain",2008,45243381 1383 | "Sri Lanka",2008,20452387 1384 | "Sudan",2008,43158451 1385 | "Swaziland",2008,1153929 1386 | "Syrian Arab Republic",2008,20346056 1387 | "Tajikistan",2008,7275252 1388 | "Thailand",2008,66185340 1389 | "Togo",2008,5987491 1390 | "Turkey",2008,70363511 1391 | "Uganda",2008,31778799 1392 | "Ukraine",2008,46461350 1393 | "United Kingdom of Great Britain and Northern Ireland",2008,61333257 1394 | "United Republic of Tanzania",2008,42353790 1395 | "United States of America",2008,306657153 1396 | "Uzbekistan",2008,27023200 1397 | "Venezuela (Bolivarian Republic of)",2008,28120312 1398 | "Viet Nam",2008,87369203 1399 | "Yemen",2008,21703571 1400 | "Zambia",2008,12456527 1401 | "Zimbabwe",2008,12784041 1402 | "Afghanistan",2009,27708187 1403 | "Algeria",2009,36383302 1404 | "Angola",2009,18926650 1405 | "Argentina",2009,40023641 1406 | "Azerbaijan",2009,8986266 1407 | "Bangladesh",2009,149503100 1408 | "Belarus",2009,9525785 1409 | "Benin",2009,9240783 1410 | "Bolivia (Plurinational State of)",2009,9993406 1411 | "Botswana",2009,1951715 1412 | "Brazil",2009,193490922 1413 | "Burkina Faso",2009,15094967 1414 | "Burundi",2009,8926687 1415 | "Cambodia",2009,14144225 1416 | "Cameroon",2009,20103945 1417 | "Central African Republic",2009,4266247 1418 | "Chad",2009,11371325 1419 | "Chile",2009,16991729 1420 | "China",2009,1351247555 1421 | "China, Hong Kong SAR",2009,7006930 1422 | "Colombia",2009,45802561 1423 | "Congo",2009,3995146 1424 | "Côte d'Ivoire",2009,18601342 1425 | "Democratic People's Republic of Korea",2009,24371865 1426 | "Democratic Republic of the Congo",2009,60486276 1427 | "Djibouti",2009,821865 1428 | "Dominican Republic",2009,9884265 1429 | "Ecuador",2009,14756424 1430 | "Egypt",2009,76775023 1431 | "Ethiopia",2009,84838032 1432 | "France",2009,62888318 1433 | "Georgia",2009,4401093 1434 | "Germany",2009,83182774 1435 | "Ghana",2009,23691533 1436 | "Guatemala",2009,13988988 1437 | "Guinea",2009,10593248 1438 | "Haiti",2009,9765153 1439 | "Honduras",2009,7469844 1440 | "India",2009,1190138069 1441 | "Indonesia",2009,237486894 1442 | "Iran (Islamic Republic of)",2009,73542954 1443 | "Iraq",2009,30163199 1444 | "Italy",2009,60220314 1445 | "Japan",2009,127352872 1446 | "Kazakhstan",2009,15743552 1447 | "Kenya",2009,39824734 1448 | "Kyrgyzstan",2009,5265218 1449 | "Lao People's Democratic Republic",2009,6267968 1450 | "Lesotho",2009,1989873 1451 | "Liberia",2009,3821440 1452 | "Madagascar",2009,20495695 1453 | "Malawi",2009,14573338 1454 | "Malaysia",2009,27790324 1455 | "Mali",2009,13559296 1456 | "Mexico",2009,116422752 1457 | "Mongolia",2009,2672223 1458 | "Morocco",2009,31276564 1459 | "Mozambique",2009,23361025 1460 | "Myanmar",2009,51540490 1461 | "Namibia",2009,2143498 1462 | "Nepal",2009,26544943 1463 | "Nicaragua",2009,5743329 1464 | "Niger",2009,15302948 1465 | "Nigeria",2009,155381020 1466 | "Pakistan",2009,170093999 1467 | "Paraguay",2009,6347383 1468 | "Peru",2009,28934303 1469 | "Philippines",2009,91886400 1470 | "Poland",2009,38193591 1471 | "Portugal",2009,10580673 1472 | "Republic of Korea",2009,48164969 1473 | "Republic of Moldova",2009,3604078 1474 | "Romania",2009,21913311 1475 | "Russian Federation",2009,143689741 1476 | "Rwanda",2009,10529668 1477 | "Saudi Arabia",2009,26796375 1478 | "Senegal",2009,12586827 1479 | "Sierra Leone",2009,5641182 1480 | "Somalia",2009,9380854 1481 | "South Africa",2009,50889543 1482 | "Spain",2009,45754265 1483 | "Sri Lanka",2009,20601663 1484 | "Sudan",2009,44373749 1485 | "Swaziland",2009,1173678 1486 | "Syrian Arab Republic",2009,21031546 1487 | "Tajikistan",2009,7447396 1488 | "Thailand",2009,66277335 1489 | "Togo",2009,6144457 1490 | "Turkey",2009,71241080 1491 | "Uganda",2009,32864328 1492 | "Ukraine",2009,46267306 1493 | "United Kingdom of Great Britain and Northern Ireland",2009,61700797 1494 | "United Republic of Tanzania",2009,43639752 1495 | "United States of America",2009,309491893 1496 | "Uzbekistan",2009,27392784 1497 | "Venezuela (Bolivarian Republic of)",2009,28583040 1498 | "Viet Nam",2009,88199997 1499 | "Yemen",2009,22229625 1500 | "Zambia",2009,12825031 1501 | "Zimbabwe",2009,12888918 1502 | "Afghanistan",2010,28397812 1503 | "Algeria",2010,37062820 1504 | "Angola",2010,19549124 1505 | "Argentina",2010,40374224 1506 | "Azerbaijan",2010,9094718 1507 | "Bangladesh",2010,151125475 1508 | "Belarus",2010,9491070 1509 | "Benin",2010,9509798 1510 | "Bolivia (Plurinational State of)",2010,10156601 1511 | "Botswana",2010,1969341 1512 | "Brazil",2010,195210154 1513 | "Burkina Faso",2010,15540284 1514 | "Burundi",2010,9232753 1515 | "Cambodia",2010,14364931 1516 | "Cameroon",2010,20624343 1517 | "Central African Republic",2010,4349921 1518 | "Chad",2010,11720781 1519 | "Chile",2010,17150760 1520 | "China",2010,1359821465 1521 | "China, Hong Kong SAR",2010,7049514 1522 | "Colombia",2010,46444798 1523 | "Congo",2010,4111715 1524 | "Côte d'Ivoire",2010,18976588 1525 | "Democratic People's Republic of Korea",2010,24500520 1526 | "Democratic Republic of the Congo",2010,62191161 1527 | "Djibouti",2010,834036 1528 | "Dominican Republic",2010,10016797 1529 | "Ecuador",2010,15001072 1530 | "Egypt",2010,78075705 1531 | "Ethiopia",2010,87095281 1532 | "France",2010,63230866 1533 | "Georgia",2010,4388674 1534 | "Germany",2010,83017404 1535 | "Ghana",2010,24262901 1536 | "Guatemala",2010,14341576 1537 | "Guinea",2010,10876033 1538 | "Haiti",2010,9896400 1539 | "Honduras",2010,7621204 1540 | "India",2010,1205624648 1541 | "Indonesia",2010,240676485 1542 | "Iran (Islamic Republic of)",2010,74462314 1543 | "Iraq",2010,30962380 1544 | "Italy",2010,60508978 1545 | "Japan",2010,127352833 1546 | "Kazakhstan",2010,15921127 1547 | "Kenya",2010,40909194 1548 | "Kyrgyzstan",2010,5334223 1549 | "Lao People's Democratic Republic",2010,6395713 1550 | "Lesotho",2010,2008921 1551 | "Liberia",2010,3957990 1552 | "Madagascar",2010,21079532 1553 | "Malawi",2010,15013694 1554 | "Malaysia",2010,28275835 1555 | "Mali",2010,13985961 1556 | "Mexico",2010,117886404 1557 | "Mongolia",2010,2712738 1558 | "Morocco",2010,31642360 1559 | "Mozambique",2010,23967265 1560 | "Myanmar",2010,51931231 1561 | "Namibia",2010,2178967 1562 | "Nepal",2010,26846016 1563 | "Nicaragua",2010,5822209 1564 | "Niger",2010,15893746 1565 | "Nigeria",2010,159707780 1566 | "Pakistan",2010,173149306 1567 | "Paraguay",2010,6459721 1568 | "Peru",2010,29262830 1569 | "Philippines",2010,93444322 1570 | "Poland",2010,38198754 1571 | "Portugal",2010,10589792 1572 | "Republic of Korea",2010,48453931 1573 | "Republic of Moldova",2010,3573024 1574 | "Romania",2010,21861476 1575 | "Russian Federation",2010,143617913 1576 | "Rwanda",2010,10836732 1577 | "Saudi Arabia",2010,27258387 1578 | "Senegal",2010,12950564 1579 | "Sierra Leone",2010,5751976 1580 | "Somalia",2010,9636173 1581 | "South Africa",2010,51452352 1582 | "Spain",2010,46182038 1583 | "Sri Lanka",2010,20758779 1584 | "Sudan",2010,45592931 1585 | "Swaziland",2010,1193148 1586 | "Syrian Arab Republic",2010,21532647 1587 | "Tajikistan",2010,7627326 1588 | "Thailand",2010,66402316 1589 | "Togo",2010,6306014 1590 | "Turkey",2010,72137546 1591 | "Uganda",2010,33987213 1592 | "Ukraine",2010,46050220 1593 | "United Kingdom of Great Britain and Northern Ireland",2010,62066350 1594 | "United Republic of Tanzania",2010,44973330 1595 | "United States of America",2010,312247116 1596 | "Uzbekistan",2010,27769270 1597 | "Venezuela (Bolivarian Republic of)",2010,29043283 1598 | "Viet Nam",2010,89047397 1599 | "Yemen",2010,22763008 1600 | "Zambia",2010,13216985 1601 | "Zimbabwe",2010,13076978 1602 | "Afghanistan",2011,29105480 1603 | "Algeria",2011,37762962 1604 | "Angola",2011,20180490 1605 | "Argentina",2011,40728738 1606 | "Azerbaijan",2011,9202432 1607 | "Bangladesh",2011,152862431 1608 | "Belarus",2011,9450391 1609 | "Benin",2011,9779795 1610 | "Bolivia (Plurinational State of)",2011,10324445 1611 | "Botswana",2011,1986701 1612 | "Brazil",2011,196935134 1613 | "Burkina Faso",2011,15995313 1614 | "Burundi",2011,9540362 1615 | "Cambodia",2011,14605862 1616 | "Cameroon",2011,21156272 1617 | "Central African Republic",2011,4436217 1618 | "Chad",2011,12080037 1619 | "Chile",2011,17308449 1620 | "China",2011,1368440300 1621 | "China, Hong Kong SAR",2011,7096359 1622 | "Colombia",2011,47078792 1623 | "Congo",2011,4225359 1624 | "Côte d'Ivoire",2011,19389954 1625 | "Democratic People's Republic of Korea",2011,24631291 1626 | "Democratic Republic of the Congo",2011,63931512 1627 | "Djibouti",2011,846646 1628 | "Dominican Republic",2011,10147598 1629 | "Ecuador",2011,15246481 1630 | "Egypt",2011,79392466 1631 | "Ethiopia",2011,89393063 1632 | "France",2011,63582112 1633 | "Georgia",2011,4374226 1634 | "Germany",2011,82892904 1635 | "Ghana",2011,24820706 1636 | "Guatemala",2011,14706578 1637 | "Guinea",2011,11161530 1638 | "Haiti",2011,10032864 1639 | "Honduras",2011,7776669 1640 | "India",2011,1221156319 1641 | "Indonesia",2011,243801639 1642 | "Iran (Islamic Republic of)",2011,75424285 1643 | "Iraq",2011,31837015 1644 | "Italy",2011,60729316 1645 | "Japan",2011,127319206 1646 | "Kazakhstan",2011,16097998 1647 | "Kenya",2011,42027891 1648 | "Kyrgyzstan",2011,5403419 1649 | "Lao People's Democratic Republic",2011,6521314 1650 | "Lesotho",2011,2029516 1651 | "Liberia",2011,4079697 1652 | "Madagascar",2011,21678934 1653 | "Malawi",2011,15457531 1654 | "Malaysia",2011,28758968 1655 | "Mali",2011,14416737 1656 | "Mexico",2011,119361233 1657 | "Mongolia",2011,2754209 1658 | "Morocco",2011,32059424 1659 | "Mozambique",2011,24581367 1660 | "Myanmar",2011,52350763 1661 | "Namibia",2011,2217618 1662 | "Nepal",2011,27156367 1663 | "Nicaragua",2011,5905146 1664 | "Niger",2011,16511462 1665 | "Nigeria",2011,164192925 1666 | "Pakistan",2011,176166353 1667 | "Paraguay",2011,6573097 1668 | "Peru",2011,29614887 1669 | "Philippines",2011,95053437 1670 | "Poland",2011,38204598 1671 | "Portugal",2011,10597629 1672 | "Republic of Korea",2011,48732640 1673 | "Republic of Moldova",2011,3542928 1674 | "Romania",2011,21808931 1675 | "Russian Federation",2011,143438152 1676 | "Rwanda",2011,11144315 1677 | "Saudi Arabia",2011,27761728 1678 | "Senegal",2011,13330737 1679 | "Sierra Leone",2011,5865491 1680 | "Somalia",2011,9907903 1681 | "South Africa",2011,51949041 1682 | "Spain",2011,46514117 1683 | "Sri Lanka",2011,20925532 1684 | "Sudan",2011,36430923 1685 | "Swaziland",2011,1212159 1686 | "Syrian Arab Republic",2011,21804363 1687 | "Tajikistan",2011,7814850 1688 | "Thailand",2011,66576332 1689 | "Togo",2011,6472304 1690 | "Turkey",2011,73058638 1691 | "Uganda",2011,35148064 1692 | "Ukraine",2011,45802721 1693 | "United Kingdom of Great Britain and Northern Ireland",2011,62426923 1694 | "United Republic of Tanzania",2011,46354607 1695 | "United States of America",2011,314911752 1696 | "Uzbekistan",2011,28151746 1697 | "Venezuela (Bolivarian Republic of)",2011,29500625 1698 | "Viet Nam",2011,89913956 1699 | "Yemen",2011,23304206 1700 | "Zambia",2011,13633796 1701 | "Zimbabwe",2011,13358738 1702 | "Afghanistan",2012,29824536 1703 | "Algeria",2012,38481705 1704 | "Angola",2012,20820525 1705 | "Argentina",2012,41086927 1706 | "Azerbaijan",2012,9308959 1707 | "Bangladesh",2012,154695368 1708 | "Belarus",2012,9405097 1709 | "Benin",2012,10050702 1710 | "Bolivia (Plurinational State of)",2012,10496285 1711 | "Botswana",2012,2003910 1712 | "Brazil",2012,198656019 1713 | "Burkina Faso",2012,16460141 1714 | "Burundi",2012,9849569 1715 | "Cambodia",2012,14864646 1716 | "Cameroon",2012,21699631 1717 | "Central African Republic",2012,4525209 1718 | "Chad",2012,12448175 1719 | "Chile",2012,17464814 1720 | "China",2012,1377064907 1721 | "China, Hong Kong SAR",2012,7148493 1722 | "Colombia",2012,47704427 1723 | "Congo",2012,4337051 1724 | "Côte d'Ivoire",2012,19839750 1725 | "Democratic People's Republic of Korea",2012,24763188 1726 | "Democratic Republic of the Congo",2012,65705093 1727 | "Djibouti",2012,859652 1728 | "Dominican Republic",2012,10276621 1729 | "Ecuador",2012,15492264 1730 | "Egypt",2012,80721874 1731 | "Ethiopia",2012,91728849 1732 | "France",2012,63936575 1733 | "Georgia",2012,4358242 1734 | "Germany",2012,82800121 1735 | "Ghana",2012,25366462 1736 | "Guatemala",2012,15082831 1737 | "Guinea",2012,11451273 1738 | "Haiti",2012,10173775 1739 | "Honduras",2012,7935846 1740 | "India",2012,1236686732 1741 | "Indonesia",2012,246864191 1742 | "Iran (Islamic Republic of)",2012,76424443 1743 | "Iraq",2012,32778030 1744 | "Italy",2012,60884593 1745 | "Japan",2012,127249704 1746 | "Kazakhstan",2012,16271201 1747 | "Kenya",2012,43178141 1748 | "Kyrgyzstan",2012,5474213 1749 | "Lao People's Democratic Republic",2012,6645827 1750 | "Lesotho",2012,2051545 1751 | "Liberia",2012,4190435 1752 | "Madagascar",2012,22293914 1753 | "Malawi",2012,15906483 1754 | "Malaysia",2012,29239927 1755 | "Mali",2012,14853572 1756 | "Mexico",2012,120847477 1757 | "Mongolia",2012,2796484 1758 | "Morocco",2012,32521143 1759 | "Mozambique",2012,25203395 1760 | "Myanmar",2012,52797319 1761 | "Namibia",2012,2259393 1762 | "Nepal",2012,27474377 1763 | "Nicaragua",2012,5991733 1764 | "Niger",2012,17157042 1765 | "Nigeria",2012,168833776 1766 | "Pakistan",2012,179160111 1767 | "Paraguay",2012,6687361 1768 | "Peru",2012,29987800 1769 | "Philippines",2012,96706764 1770 | "Poland",2012,38210924 1771 | "Portugal",2012,10603804 1772 | "Republic of Korea",2012,49002683 1773 | "Republic of Moldova",2012,3514381 1774 | "Romania",2012,21754741 1775 | "Russian Federation",2012,143169653 1776 | "Rwanda",2012,11457801 1777 | "Saudi Arabia",2012,28287855 1778 | "Senegal",2012,13726021 1779 | "Sierra Leone",2012,5978727 1780 | "Somalia",2012,10195134 1781 | "South Africa",2012,52385920 1782 | "Spain",2012,46754541 1783 | "Sri Lanka",2012,21098099 1784 | "Sudan",2012,37195349 1785 | "Swaziland",2012,1230985 1786 | "Syrian Arab Republic",2012,21889682 1787 | "Tajikistan",2012,8008990 1788 | "Thailand",2012,66785001 1789 | "Togo",2012,6642928 1790 | "Turkey",2012,73997128 1791 | "Uganda",2012,36345860 1792 | "Ukraine",2012,45529944 1793 | "United Kingdom of Great Britain and Northern Ireland",2012,62783115 1794 | "United Republic of Tanzania",2012,47783107 1795 | "United States of America",2012,317505266 1796 | "Uzbekistan",2012,28541423 1797 | "Venezuela (Bolivarian Republic of)",2012,29954782 1798 | "Viet Nam",2012,90795769 1799 | "Yemen",2012,23852409 1800 | "Zambia",2012,14075099 1801 | "Zimbabwe",2012,13724317 1802 | "Afghanistan",2013,30551674 1803 | "Algeria",2013,39208194 1804 | "Angola",2013,21471618 1805 | "Argentina",2013,41446246 1806 | "Azerbaijan",2013,9413420 1807 | "Bangladesh",2013,156594962 1808 | "Belarus",2013,9356678 1809 | "Benin",2013,10323474 1810 | "Bolivia (Plurinational State of)",2013,10671200 1811 | "Botswana",2013,2021144 1812 | "Brazil",2013,200361925 1813 | "Burkina Faso",2013,16934839 1814 | "Burundi",2013,10162532 1815 | "Cambodia",2013,15135169 1816 | "Cameroon",2013,22253959 1817 | "Central African Republic",2013,4616417 1818 | "Chad",2013,12825314 1819 | "Chile",2013,17619708 1820 | "China",2013,1385566537 1821 | "China, Hong Kong SAR",2013,7203836 1822 | "Colombia",2013,48321405 1823 | "Congo",2013,4447632 1824 | "Côte d'Ivoire",2013,20316086 1825 | "Democratic People's Republic of Korea",2013,24895480 1826 | "Democratic Republic of the Congo",2013,67513677 1827 | "Djibouti",2013,872932 1828 | "Dominican Republic",2013,10403761 1829 | "Ecuador",2013,15737878 1830 | "Egypt",2013,82056378 1831 | "Ethiopia",2013,94100756 1832 | "France",2013,64291280 1833 | "Georgia",2013,4340895 1834 | "Germany",2013,82726626 1835 | "Ghana",2013,25904598 1836 | "Guatemala",2013,15468203 1837 | "Guinea",2013,11745189 1838 | "Haiti",2013,10317461 1839 | "Honduras",2013,8097688 1840 | "India",2013,1252139596 1841 | "Indonesia",2013,249865631 1842 | "Iran (Islamic Republic of)",2013,77447168 1843 | "Iraq",2013,33765232 1844 | "Italy",2013,60990277 1845 | "Japan",2013,127143577 1846 | "Kazakhstan",2013,16440586 1847 | "Kenya",2013,44353691 1848 | "Kyrgyzstan",2013,5547548 1849 | "Lao People's Democratic Republic",2013,6769727 1850 | "Lesotho",2013,2074465 1851 | "Liberia",2013,4294077 1852 | "Madagascar",2013,22924851 1853 | "Malawi",2013,16362567 1854 | "Malaysia",2013,29716965 1855 | "Mali",2013,15301650 1856 | "Mexico",2013,122332399 1857 | "Mongolia",2013,2839073 1858 | "Morocco",2013,33008150 1859 | "Mozambique",2013,25833752 1860 | "Myanmar",2013,53259018 1861 | "Namibia",2013,2303315 1862 | "Nepal",2013,27797457 1863 | "Nicaragua",2013,6080478 1864 | "Niger",2013,17831270 1865 | "Nigeria",2013,173615345 1866 | "Pakistan",2013,182142594 1867 | "Paraguay",2013,6802295 1868 | "Peru",2013,30375603 1869 | "Philippines",2013,98393574 1870 | "Poland",2013,38216635 1871 | "Portugal",2013,10608156 1872 | "Republic of Korea",2013,49262698 1873 | "Republic of Moldova",2013,3487204 1874 | "Romania",2013,21698585 1875 | "Russian Federation",2013,142833689 1876 | "Rwanda",2013,11776522 1877 | "Saudi Arabia",2013,28828870 1878 | "Senegal",2013,14133280 1879 | "Sierra Leone",2013,6092075 1880 | "Somalia",2013,10495583 1881 | "South Africa",2013,52776130 1882 | "Spain",2013,46926963 1883 | "Sri Lanka",2013,21273228 1884 | "Sudan",2013,37964306 1885 | "Swaziland",2013,1249514 1886 | "Syrian Arab Republic",2013,21898061 1887 | "Tajikistan",2013,8207834 1888 | "Thailand",2013,67010502 1889 | "Togo",2013,6816982 1890 | "Turkey",2013,74932641 1891 | "Uganda",2013,37578876 1892 | "Ukraine",2013,45238805 1893 | "United Kingdom of Great Britain and Northern Ireland",2013,63136265 1894 | "United Republic of Tanzania",2013,49253126 1895 | "United States of America",2013,320050716 1896 | "Uzbekistan",2013,28934102 1897 | "Venezuela (Bolivarian Republic of)",2013,30405207 1898 | "Viet Nam",2013,91679733 1899 | "Yemen",2013,24407381 1900 | "Zambia",2013,14538640 1901 | "Zimbabwe",2013,14149648 1902 | -------------------------------------------------------------------------------- /data-raw/toyb.csv: -------------------------------------------------------------------------------- 1 | "country","year","sex","cases" 2 | "Afghanistan",1999,"female",1 3 | "Afghanistan",1999,"male",1 4 | "Afghanistan",2000,"female",1 5 | "Afghanistan",2000,"male",1 6 | "Brazil",1999,"female",2 7 | "Brazil",1999,"male",2 8 | "Brazil",2000,"female",2 9 | "Brazil",2000,"male",2 10 | "China",1999,"female",3 11 | "China",1999,"male",3 12 | "China",2000,"female",3 13 | "China",2000,"male",3 14 | -------------------------------------------------------------------------------- /data-raw/who.R: -------------------------------------------------------------------------------- 1 | # who.R 2 | # Making who data set 3 | 4 | who <- read.csv("data-raw/TB_notifications_2014-11-13.csv", stringsAsFactors = FALSE) 5 | 6 | library(dplyr) 7 | library(tidyr) 8 | 9 | who2 <- who %>% 10 | tbl_df() %>% 11 | select(country:iso3, year, new_sp_m014:new_sp_m65, new_sp_f014:new_sp_f65, new_sn_m014:new_sn_m65, new_sn_f014:new_sn_f65, new_ep_m014:new_ep_m65, new_ep_f014:new_ep_f65, newrel_m014:newrel_m65, newrel_f014:newrel_f65) 12 | 13 | dput(names(who2)[47:60]) 14 | names(who2)[47:60] <- c("new_rel_m014", "new_rel_m1524", 15 | "new_rel_m2534", "new_rel_m3544", "new_rel_m4554", 16 | "new_rel_m5564", "new_rel_m65", "new_rel_f014", 17 | "new_rel_f1524", "new_rel_f2534", "new_rel_f3544", 18 | "new_rel_f4554", "new_rel_f5564", "new_rel_f65") 19 | 20 | who <- who2 21 | write.csv(who, file = "data-raw/who.csv", row.names = FALSE) 22 | save(who, file = "data/who.rdata") -------------------------------------------------------------------------------- /data-raw/y.csv: -------------------------------------------------------------------------------- 1 | "x1","x2" 2 | "A",1 3 | "B",2 4 | "C",3 5 | -------------------------------------------------------------------------------- /data-raw/z.csv: -------------------------------------------------------------------------------- 1 | "x1","x2" 2 | "B",2 3 | "C",3 4 | "D",4 5 | -------------------------------------------------------------------------------- /data/a.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/a.rdata -------------------------------------------------------------------------------- /data/artists.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/artists.rdata -------------------------------------------------------------------------------- /data/artists2.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/artists2.rdata -------------------------------------------------------------------------------- /data/b.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/b.rdata -------------------------------------------------------------------------------- /data/cases.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/cases.rdata -------------------------------------------------------------------------------- /data/nas.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/nas.rdata -------------------------------------------------------------------------------- /data/nutrition.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/nutrition.rdata -------------------------------------------------------------------------------- /data/pollution.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/pollution.rdata -------------------------------------------------------------------------------- /data/population.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/population.rdata -------------------------------------------------------------------------------- /data/rates.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/rates.rdata -------------------------------------------------------------------------------- /data/rawtb.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/rawtb.rdata -------------------------------------------------------------------------------- /data/songs.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/songs.rdata -------------------------------------------------------------------------------- /data/songs2.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/songs2.rdata -------------------------------------------------------------------------------- /data/storms.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/storms.rdata -------------------------------------------------------------------------------- /data/tb.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/tb.rdata -------------------------------------------------------------------------------- /data/tidypop.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/tidypop.rdata -------------------------------------------------------------------------------- /data/toyb.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/toyb.rdata -------------------------------------------------------------------------------- /data/who.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/who.rdata -------------------------------------------------------------------------------- /data/y.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/y.rdata -------------------------------------------------------------------------------- /data/z.rdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rstudio/EDAWR/fbfee98447826f6b199a482715f3b7dadd311da3/data/z.rdata -------------------------------------------------------------------------------- /man/a.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{a} 5 | \alias{a} 6 | \title{Toy data} 7 | \format{\preformatted{ num [1:4] NA 2 3 NA 8 | }} 9 | \usage{ 10 | a 11 | } 12 | \description{ 13 | Meaningless numbers and letters. 14 | } 15 | \keyword{datasets} 16 | 17 | -------------------------------------------------------------------------------- /man/artists.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artists} 5 | \alias{artists} 6 | \title{Names of musicians} 7 | \format{\preformatted{'data.frame': 4 obs. of 2 variables: 8 | $ name : chr "George" "John" "Paul" "Ringo" 9 | $ plays: chr "sitar" "guitar" "bass" "drums" 10 | }} 11 | \usage{ 12 | artists 13 | } 14 | \description{ 15 | A simple data set of musicians and the instruments they played. 16 | } 17 | \keyword{datasets} 18 | 19 | -------------------------------------------------------------------------------- /man/artists2.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artists2} 5 | \alias{artists2} 6 | \title{Names of musicians} 7 | \format{\preformatted{'data.frame': 6 obs. of 3 variables: 8 | $ first: chr "George" "John" "Paul" "Ringo" ... 9 | $ last : chr "Harrison" "Lennon" "McCartney" "Starr" ... 10 | $ plays: chr "sitar" "guitar" "bass" "drums" ... 11 | }} 12 | \usage{ 13 | artists2 14 | } 15 | \description{ 16 | A second simple data set of musicians and the instruments they played. 17 | } 18 | \keyword{datasets} 19 | 20 | -------------------------------------------------------------------------------- /man/b.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{b} 5 | \alias{b} 6 | \title{Toy data} 7 | \format{\preformatted{ num [1:4] 1 NA 3 NA 8 | }} 9 | \usage{ 10 | b 11 | } 12 | \description{ 13 | Meaningless numbers and letters. 14 | } 15 | \keyword{datasets} 16 | 17 | -------------------------------------------------------------------------------- /man/cases.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{cases} 5 | \alias{cases} 6 | \title{TB cases in USA, Germany, and France} 7 | \format{A dataset with the estimated number of TB cases in 8 | France, Germany, and the United States for 2011, 2012, and 9 | 2013.} 10 | \source{ 11 | \url{http://www.who.int/tb/country/data/download/en/} 12 | } 13 | \usage{ 14 | cases 15 | } 16 | \description{ 17 | A subset of data from the World Health Organization Global 18 | Tuberculosis Report. 19 | } 20 | \keyword{datasets} 21 | 22 | -------------------------------------------------------------------------------- /man/nas.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{nas} 5 | \alias{nas} 6 | \title{Toy data} 7 | \format{\preformatted{Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 4 obs. of 3 variables: 8 | $ a: num NA 2 3 NA 9 | $ b: num 1 NA 3 NA 10 | $ c: num 1 2 NA NA 11 | }} 12 | \usage{ 13 | nas 14 | } 15 | \description{ 16 | A data set that has a tricky set of missing values to work with. 17 | } 18 | \keyword{datasets} 19 | 20 | -------------------------------------------------------------------------------- /man/nutrition.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{nutrition} 5 | \alias{nutrition} 6 | \title{Nutrition data} 7 | \format{\preformatted{Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 8463 obs. of 28 variables: 8 | $ food : chr "Butter, salted" "Butter, whipped, with salt" "Butter oil, anhydrous" "Cheese, blue" ... 9 | $ calories : num 717 717 876 353 371 334 300 376 403 387 ... 10 | $ protein : num 0.85 0.85 0.28 21.4 23.24 ... 11 | $ carbohydrates: num 0.06 0.06 0 2.34 2.79 0.45 0.46 3.06 1.28 4.78 ... 12 | $ total_fat : num 81.1 81.1 99.5 28.7 29.7 ... 13 | $ saturated_fat: num 51.4 50.5 61.9 18.7 18.8 ... 14 | $ caffiene : num 0 0 0 0 0 0 0 NA 0 NA ... 15 | $ cholesterol : num 215 219 256 75 94 100 72 93 105 103 ... 16 | $ fiber : num 0 0 0 0 0 0 0 0 0 0 ... 17 | $ folic_acid : num 0 0 0 0 0 0 0 0 0 0 ... 18 | $ sodium : num 643 659 2 1146 560 ... 19 | $ calcium : num 24 24 4 528 674 184 388 673 721 643 ... 20 | $ iron : num 0.02 0.16 0 0.31 0.43 0.5 0.33 0.64 0.68 0.21 ... 21 | $ magnesium : num 2 2 0 23 24 20 20 22 28 21 ... 22 | $ manganese : num 0 0.004 0 0.009 0.012 0.034 0.038 0.021 0.01 0.012 ... 23 | $ niacin : num 0.042 0.042 0.003 1.016 0.118 ... 24 | $ phosphorus : num 24 23 3 387 451 188 347 490 512 464 ... 25 | $ potassium : num 24 26 5 256 136 152 187 93 98 95 ... 26 | $ riboflavin : num 0.034 0.034 0.005 0.382 0.351 0.52 0.488 0.45 0.375 0.293 ... 27 | $ selenium : num 1 1 0 14.5 14.5 14.5 14.5 14.5 13.9 14.5 ... 28 | $ thiamin : num 0.005 0.005 0.001 0.029 0.014 0.07 0.028 0.031 0.027 0.046 ... 29 | $ vitamin_A : num 2499 2499 3069 721 1080 ... 30 | $ vitamin_B6 : num 0.003 0.003 0.001 0.166 0.065 0.235 0.227 0.074 0.074 0.074 ... 31 | $ vitamin_B12 : num 0.17 0.13 0.01 1.22 1.26 1.65 1.3 0.27 0.83 0.83 ... 32 | $ vitamin_C : num 0 0 0 0 0 0 0 0 0 0 ... 33 | $ vitamin_D : num 60 60 73 21 22 20 18 NA 24 NA ... 34 | $ zinc : num 0.09 0.05 0.01 2.66 2.6 2.38 2.38 2.94 3.11 2.79 ... 35 | $ group : chr "Dairy and Egg Products" "Dairy and Egg Products" "Dairy and Egg Products" "Dairy and Egg Products" ... 36 | }} 37 | \source{ 38 | \url{http://www.ars.usda.gov/Services/docs.htm?docid=8964} 39 | } 40 | \usage{ 41 | nutrition 42 | } 43 | \description{ 44 | Nutrition data on 8463 foods provided by the United States Department of Agriculture (USDA). The dataset contains the amount of 25 nutrients and macronutrients found in 100 grams of each food, as well as the name, total calories, and food group for each food. 45 | } 46 | \details{ 47 | The nutrition data was compiled from data sets in the \code{\link[usdanutrients]{usdanutrients}} package. 48 | } 49 | \keyword{datasets} 50 | 51 | -------------------------------------------------------------------------------- /man/plus.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/plus.R 3 | \name{plus} 4 | \alias{plus} 5 | \title{Vectorized addition with na.rm} 6 | \usage{ 7 | plus(..., na.rm = TRUE) 8 | } 9 | \arguments{ 10 | \item{...}{a set of vectors. Each vector should be numeric, integer, or coercible to numeric. 11 | na.rm logical. Should missing values (including NaN) be omitted from the calculations?} 12 | } 13 | \description{ 14 | \code{plus} adds together multiple vectors in element-wise fashion, 15 | so \code{plus(a, b, c)} would be similar to \code{a + b +c}. 16 | Unlike \code{+}, \code{plus} takes an \code{na.rm} argument to handle 17 | NA behavior. 18 | } 19 | \examples{ 20 | a <- c(NA, 2, 3) 21 | b <- c(1, NA, 3) 22 | c <- c(1, 2, NA) 23 | plus(a, b, c) 24 | plus(a, b, c, na.rm = FALSE) 25 | } 26 | 27 | -------------------------------------------------------------------------------- /man/pollution.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{pollution} 5 | \alias{pollution} 6 | \title{Pollution data} 7 | \format{A data frame with variables: 8 | \describe{ 9 | \item{city}{Name of city: New York, London, or Beijing} 10 | \item{Size}{Size of air particulate measured. Fine suspended particles smaller than 10 microns in diameter (\code{large}) and 2.5 microns in diameter (\code{small}).} 11 | \item{amount}{The mean annual concentration of particles in milligrams per meter cubed (ug/m3)} 12 | }} 13 | \source{ 14 | \url{http://www.who.int/phe/health_topics/outdoorair/databases/cities/en/} 15 | } 16 | \usage{ 17 | pollution 18 | } 19 | \description{ 20 | Pollution data from the WHO, 2014. This dataset contains 21 | a subset of data from the Ambient Air Pollution Database, 22 | WHO, May 2014. 23 | } 24 | \keyword{datasets} 25 | 26 | -------------------------------------------------------------------------------- /man/population.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{population} 5 | \alias{population} 6 | \title{Population data} 7 | \format{\preformatted{Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 100 obs. of 20 variables: 8 | $ country: chr "Afghanistan" "Algeria" "Angola" "Argentina" ... 9 | $ 1995 : int 17586073 29315463 12104952 34833168 7770806 119869585 10189075 5985658 7635362 1583453 ... 10 | $ 1996 : int 18415307 29845208 12451945 35264070 7852273 122400896 10156258 6176318 7806953 1620989 ... 11 | $ 1997 : int 19021226 30345466 12791388 35690778 7921745 124945315 10120556 6361301 7978521 1657349 ... 12 | $ 1998 : int 19496836 30820435 13137542 36109342 7984460 127478524 10080772 6546493 8150214 1692148 ... 13 | $ 1999 : int 19987071 31276295 13510616 36514558 8047936 129966823 10034775 6740491 8322408 1724924 ... 14 | $ 2000 : int 20595360 31719449 13924930 36903067 8117742 132383265 9981460 6949366 8495271 1755375 ... 15 | $ 2001 : int 21347782 32150198 14385283 37273361 8195427 134729503 9920173 7174911 8669066 1783349 ... 16 | $ 2002 : int 22202806 32572977 14886574 37627545 8279768 137006279 9852866 7414744 8843350 1808976 ... 17 | $ 2003 : int 23116142 33003442 15421075 37970411 8370169 139185986 9784111 7665681 9016787 1832602 ... 18 | $ 2004 : int 24018682 33461345 15976715 38308779 8465127 141235035 9719991 7922796 9187610 1854739 ... 19 | $ 2005 : int 24860855 33960903 16544376 38647854 8563398 143135180 9664714 8182362 9354709 1875805 ... 20 | $ 2006 : int 25631282 34507214 17122409 38988923 8665006 144868702 9620359 8443671 9517395 1895944 ... 21 | $ 2007 : int 26349243 35097043 17712824 39331357 8770122 146457067 9585368 8707490 9676456 1915187 ... 22 | $ 2008 : int 27032197 35725377 18314441 39676083 8877669 147969967 9555801 8973293 9834098 1933719 ... 23 | $ 2009 : int 27708187 36383302 18926650 40023641 8986266 149503100 9525785 9240783 9993406 1951715 ... 24 | $ 2010 : int 28397812 37062820 19549124 40374224 9094718 151125475 9491070 9509798 10156601 1969341 ... 25 | $ 2011 : int 29105480 37762962 20180490 40728738 9202432 152862431 9450391 9779795 10324445 1986701 ... 26 | $ 2012 : int 29824536 38481705 20820525 41086927 9308959 154695368 9405097 10050702 10496285 2003910 ... 27 | $ 2013 : int 30551674 39208194 21471618 41446246 9413420 156594962 9356678 10323474 10671200 2021144 ... 28 | }} 29 | \source{ 30 | \url{http://www.who.int/tb/country/data/download/en/} 31 | } 32 | \usage{ 33 | population 34 | } 35 | \description{ 36 | Populations of 100 countries for 1995-2013 laid out in table format 37 | } 38 | \keyword{datasets} 39 | 40 | -------------------------------------------------------------------------------- /man/rates.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{rates} 5 | \alias{rates} 6 | \title{TB rates} 7 | \format{A dataset with the variables 8 | \describe{ 9 | \item{country}{} 10 | \item{year}{} 11 | \item{cases}{Number of new cases of TB reported} 12 | \item{population}{} 13 | \item{rate}{Number of new cases of TB reported per 10,000 people.} 14 | }} 15 | \source{ 16 | \url{http://www.who.int/tb/country/data/download/en/} 17 | } 18 | \usage{ 19 | rates 20 | } 21 | \description{ 22 | A subset of data from the World Health Organization Global 23 | Tuberculosis Report, manipulated to show TB rates by country by year. 24 | } 25 | \keyword{datasets} 26 | 27 | -------------------------------------------------------------------------------- /man/rawtb.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{rawtb} 5 | \alias{rawtb} 6 | \title{Raw TB data} 7 | \format{A dataset with the variables 8 | \describe{ 9 | \item{country}{} 10 | \item{year}{} 11 | \item{sex}{} 12 | \item{age}{One of \code{child} (0 - 14 years of age), \code{adult} (15 - 64 years of age), or \code{elderly} (over 64 years of age).} 13 | \item{n}{Number of cases: in this layout, one.} 14 | }} 15 | \source{ 16 | \url{http://www.who.int/tb/country/data/download/en/} 17 | } 18 | \usage{ 19 | rawtb 20 | } 21 | \description{ 22 | A subset of the data in the \code{\link{tb}} data set. The data displays each individual TB case from Afghanistan, Algeria, Angola, Argentina, Azerbaijan, Belarus, Benin, Botswana, and Burundi in its own row. 23 | } 24 | \keyword{datasets} 25 | 26 | -------------------------------------------------------------------------------- /man/songs.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{songs} 5 | \alias{songs} 6 | \title{Names of songs} 7 | \format{\preformatted{'data.frame': 4 obs. of 2 variables: 8 | $ song: chr "Across the Universe" "Come Together" "Hello, Goodbye" "Peggy Sue" 9 | $ name: chr "John" "John" "Paul" "Buddy" 10 | }} 11 | \usage{ 12 | songs 13 | } 14 | \description{ 15 | A simple list of pop songs and their authors 16 | } 17 | \keyword{datasets} 18 | 19 | -------------------------------------------------------------------------------- /man/songs2.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{songs2} 5 | \alias{songs2} 6 | \title{Names of songs} 7 | \format{\preformatted{'data.frame': 4 obs. of 3 variables: 8 | $ song : chr "Across the Universe" "Come Together" "Hello, Goodbye" "Peggy Sue" 9 | $ first: chr "John" "John" "Paul" "Buddy" 10 | $ last : chr "Lennon" "Lennon" "McCartney" "Holly" 11 | }} 12 | \usage{ 13 | songs2 14 | } 15 | \description{ 16 | A second simple list of pop songs and their authors 17 | } 18 | \keyword{datasets} 19 | 20 | -------------------------------------------------------------------------------- /man/storms.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{storms} 5 | \alias{storms} 6 | \title{Hurricane data} 7 | \format{A data frame with variables: 8 | \describe{ 9 | \item{storm}{Name of hurricane: Alberto, Alex, Allison, Ana, Arlene, Arthur.} 10 | \item{wind}{Maximum wind speed measured for each hurricane (in miles per hour).} 11 | \item{pressure}{Air pressure in the storm's center (in millibars).} 12 | \item{date}{Date maximum wind speed was observed.} 13 | }} 14 | \source{ 15 | \url{http://www.nhc.noaa.gov/} 16 | } 17 | \usage{ 18 | storms 19 | } 20 | \description{ 21 | Wind speed data for six hurricanes, collected from 22 | National Hurricane Center's archive of Tropical Cyclone 23 | Reports. 24 | } 25 | \keyword{datasets} 26 | 27 | -------------------------------------------------------------------------------- /man/tb.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{tb} 5 | \alias{tb} 6 | \title{TB data} 7 | \format{A dataset with the variables 8 | \describe{ 9 | \item{country}{} 10 | \item{year}{} 11 | \item{sex}{} 12 | \item{child}{Number of new cases reported among people 0 - 14 years of age.} 13 | \item{adult}{Number of new cases reported among people 15 - 64 years of age.} 14 | \item{elderly}{Number of new cases reported among people over 64 years of age.} 15 | }} 16 | \source{ 17 | \url{http://www.who.int/tb/country/data/download/en/} 18 | } 19 | \usage{ 20 | tb 21 | } 22 | \description{ 23 | A subset of data from the World Health Organization Global 24 | Tuberculosis Report. 25 | } 26 | \keyword{datasets} 27 | 28 | -------------------------------------------------------------------------------- /man/tidypop.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{tidypop} 5 | \alias{tidypop} 6 | \title{Population data} 7 | \format{\preformatted{Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1900 obs. of 3 variables: 8 | $ country : chr "Afghanistan" "Algeria" "Angola" "Argentina" ... 9 | $ year : int 1995 1995 1995 1995 1995 1995 1995 1995 1995 1995 ... 10 | $ population: int 17586073 29315463 12104952 34833168 7770806 119869585 10189075 5985658 7635362 1583453 ... 11 | }} 12 | \source{ 13 | \url{http://www.who.int/tb/country/data/download/en/} 14 | } 15 | \usage{ 16 | tidypop 17 | } 18 | \description{ 19 | Populations of 100 countries for 1995-2013 laid out in tidy format 20 | } 21 | \keyword{datasets} 22 | 23 | -------------------------------------------------------------------------------- /man/toyb.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{toyb} 5 | \alias{toyb} 6 | \title{Toy TB data} 7 | \format{A data frame with the columns 8 | \describe{ 9 | \item{country}{} 10 | \item{year}{} 11 | \item{sex}{} 12 | \item{cases}{} 13 | }} 14 | \usage{ 15 | toyb 16 | } 17 | \description{ 18 | A toy data set based on the \code{\link{tb}} data set. The data displays an imaginary number of TB cases grouped by country, year, and sex. 19 | } 20 | \keyword{datasets} 21 | 22 | -------------------------------------------------------------------------------- /man/who.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{who} 5 | \alias{who} 6 | \title{World Health Organization TB data} 7 | \format{A dataset with the variables 8 | \describe{ 9 | \item{country}{} 10 | \item{iso2}{Two letter International Organization for Standardization (ISO) country code} 11 | \item{iso3}{Three letter International Organization for Standardization (ISO) country code} 12 | \item{new_sp_m014 - new_rel_f65}{Counts of new TB cases recorded by group. Column names encode three variables that describe the group (see details).} 13 | }} 14 | \source{ 15 | \url{http://www.who.int/tb/country/data/download/en/} 16 | } 17 | \usage{ 18 | who 19 | } 20 | \description{ 21 | A subset of data from the World Health Organization Global 22 | Tuberculosis Report. 23 | } 24 | \details{ 25 | The data uses the original codes given by the World Health Organization. The column names for columns five through 60 are made by combining \code{new_} to a code for method of diagnosis (\code{rel} = relapse, \code{sn} = negative pulmonary smear, \code{sp} = positive pulmonary smear, \code{ep} = extrapulmonary) to a code for gender (\code{f} = female, \code{m} = male) to a code for age group (\code{014} = 0-14 yrs of age, \code{1524} = 15-24 years of age, \code{2534} = 25 to 34 years of age, \code{3544} = 35 to 44 years of age, \code{4554} = 45 to 54 years of age, \code{5564} = 55 to 64 years of age, \code{65} = 65 years of age or older). 26 | } 27 | \keyword{datasets} 28 | 29 | -------------------------------------------------------------------------------- /man/y.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{y} 5 | \alias{y} 6 | \title{Toy data} 7 | \format{\preformatted{'data.frame': 3 obs. of 2 variables: 8 | $ x1: chr "A" "B" "C" 9 | $ x2: int 1 2 3 10 | }} 11 | \usage{ 12 | y 13 | } 14 | \description{ 15 | Meaningless numbers and letters. 16 | } 17 | \keyword{datasets} 18 | 19 | -------------------------------------------------------------------------------- /man/z.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2 (4.1.0): do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{z} 5 | \alias{z} 6 | \title{Toy data} 7 | \format{\preformatted{'data.frame': 3 obs. of 2 variables: 8 | $ x1: chr "B" "C" "D" 9 | $ x2: int 2 3 4 10 | }} 11 | \usage{ 12 | z 13 | } 14 | \description{ 15 | Meaningless numbers and letters. 16 | } 17 | \keyword{datasets} 18 | 19 | --------------------------------------------------------------------------------