coding_to_haven_labels | R Documentation |
Converts a 'coding' object into a named vector to be used in the 'labels' parameter for 'haven::labelled()'.
coding_to_haven_labels(coding)
coding |
A coding object |
A named vector representation of the coding
cdng <- coding(code("Yes", 1), code("No", 0))
coding_to_haven_labels(cdng)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.