This is either a niche question or I haven't worked out the terminology to generate useful google search results...
My challenge is that I have some survey data which was originally collected via SPSS. If I had the SPSS file, there would be no issue—{haven} and {labelled} have functions that work for this scenario. As well, there are a few good onlinr resources that provide insights into working with these packages.
Alas, I don't have the SPSS file. What I have instead is an Excel file that I believe was created from SPSS output, and contains:
-
sheet 1 - the survey responses in a tidy dataframe, with the category values for each variable (eg "region" is coded 1, 2, 3, 4)
-
sheet 2 - the codebook, which provides the concordance between those values and the labels (1 = "north", 2 = "east", etc)
The codebook is not at all tidy, so I am in search of an example (or a package with the necessary functions) to merge the labels into the dataframe...to reverse-engineer what I would have in my environment if I was able to read the source SPSS file directly.
Any help gratefully accepted.
Martin