Description Usage Arguments Value
First, determines which variables are labelled.
Then, extracts the labels
Next, creates a named list: names are variable names; values are associated labels.
Then, creates a label object in the global environment whose name is the {df}_lbls
.
1 |
df |
Data frame whose value labels to extract |
List of value labels. Each element is a named numeric vector. Each vector consists of a named values. The names correspond to character labels and the values to the numerical values.
Side-effect: create list object in global environment containing labels for all variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.