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)