Description Usage Arguments Value Examples
View source: R/create_labelDf.R
Convenience function to convert a label vector to a label data frame.
1 | create_labelDf(namedVector, idCol, labelCol)
|
namedVector |
The named vector, names should be identifiers, values should be labels. |
idCol, labelCol |
The names to use for the identifier column and the label column. |
The data frame
1 2 3 4 5 6 7 8 | mdmcda::create_labelDf(
c(
id1 = "first element",
id2 = "second element"
),
idCol = "example_id",
labelCol = "example_label"
);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.