The following R packages are used throughout the data preparation guide:
- haven: import data from Stata and SAS
- dplyr: data wrangling
- tidyr: data wrangling
- epoxy: quarto document text
- memisc: survey data tools
- labelled: memisc helper package
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