This document was created using [knitr](https://cran.r-project.org/package=knitr) in [RStudio](http://www.rstudio.com). Knitr supports the embedding of R statistical analysis code within markdown text documents allowing them to be updated and re-run. Things to note:
* To process the MTUS World 6 episode data
* To save a processed & gzipped .csv file containing data for just the UK.
Data:
* Depending on the options set Knitr will display warnings (but not errors) from R. The warnings may or may not be important to the interpretation of the results;
* Knitr is very clever but it does not always support pretty tables.
`The R code embedded in this document is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License (http://choosealicense.com/licenses/gpl-2.0/), or (at your option) any later version.`
...
...
@@ -46,8 +52,16 @@ This work was funded by RCUK through the End User Energy Demand Centres Programm
>YMMV - http://en.wiktionary.org/wiki/YMMV
***
# Set up R environment
Key packages used:
* base R - for the basics [@baseR]
* foreign - for loading SPSS data [@foreign]
* data.table - for fast (big) data handling [@data.table]
* knitr - to create this document [@knitr]
* dplyr & dtplyr - for data manipulation [@dplyr][@dtplyr]