Data Management in R: A Guide for Social Scientists

Elff, Martin. 2020. Data Management with R: A Guide for Social Scientists. London: SAGE Publications.

/book/data-management-r/DataManagement_in_R-huge.png

This page provides material to accompany my recent book Data Management in R: A Guide for Social Scientists, which is being published by Sage Publications. The material is organised into different pages each corresponding to a chapter of the book:

The material is organised in in the same manner as the chapters and sections of the book. The code examples in each section are contained in a single webpage, where each code example is followed by the output it would produce in the R console or in a graphics window. The code examples for each section are collected into an R script and an RMarkdown file, both of which are available for download from the respective webpage.

Code examples are accompanied by Jupyter notebooks from which the code example pages were created.1 Links to interactive versions of the notebooks are also provided, marked by a Jupyterhub icon, i.e. JupyterHub . There are interactive versions each, one that runs on https://dataman-r-tmp.elff.eu/ in a docker container2 for a maximum time of 5 minutes and another one that runs on https://dataman-r.elff.eu/ in a docker container for up to an hour, but requires sign in with an ORCID id.3

The sources of the R-scripts and notebooks (as well as R-markdown files), are also available in the GitHub repository https://github.com/melff/dataman-r. A ZIP-file with the contents of the repository can be downloaded from https://github.com/melff/dataman-r/archive/main.zip. The Jupyter notebooks come with NO WARRANTY whatsoever. They are provided for educational and illustrative purposes only. Do not use them for production work.

1

For more information about Jupyter see http://jupyter.org. The Jupyter notebooks make use of the RKernel package.

2

For more information about Docker see https://docs.docker.com/. The container images are run with Jupyterhub DockerSpawner.

3

ORCID is a free service for the authentication of researchers. It also allows to showcase publications and contributions to the academic community such as peer review.. See https://info.orcid.org/what-is-orcid/ for more information.