Description Usage Arguments Value Author(s) Examples
Create a string or factor vector based on value labels in matching metadata
1 2 | label_data(data = d, variable.data = varcode,
variable.meta = variable.data, metadata = meta, into.factor = TRUE)
|
data |
A data.frame including the source variable to be labeled |
variable.data |
Code of the source variable in data.frame |
variable.meta |
Code of the source variable in the matching metadata |
metadata |
A tidy metadata |
into.factor |
Whether the output variable should be converted into a factor or not |
vector
Markus Kainu <markuskainu@gmail.com>
1 2 3 4 | ## Not run:
label_data(data=d, variable.data="sex", variable.meta=variable.data, metadata=meta, into.factor=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.