powered by
Converts a `coding` object into a named vector to be used in the `labels` parameter for `haven::labelled()`.
coding_to_haven_labels(coding)
A named vector representation of the coding
A coding object
cdng <- coding(code("Yes", 1), code("No", 0)) coding_to_haven_labels(cdng)
Run the code above in your browser using DataLab