1  R Setup

The following R packages are used throughout the data preparation guide:

library( haven )
library( dplyr )

Attaching package: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
library( tidyr )
library( epoxy )
library( memisc )
Loading required package: lattice
Loading required package: MASS

Attaching package: 'MASS'
The following object is masked from 'package:dplyr':

    select

Attaching package: 'memisc'
The following objects are masked from 'package:dplyr':

    collect, recode, rename, syms
The following objects are masked from 'package:stats':

    contr.sum, contr.treatment, contrasts
The following object is masked from 'package:base':

    as.array
library( labelled )