Skip to content

Merging indresp and hhresp files

Merging indresp and hhresp files within each wave, and then merging these files across all waves into a long format file using R

This R code merges the household file with the individual file for all waves; it then merges these wave-specific merged files into a wide-format dataframe, sets up the variable names so that they will work with reshape, and then completes the reshape from wide to long.

This code was authored Dr David Bartram, University of Leicester. If you have any questions about this code please email Dr Bartram at d.bartram@leicester.ac.uk.

Download (R, 4KB)

Email newsletter

Sign up to our newsletter