labels_to_level | R Documentation |
For use with forcats::fct_relabel.
labels_to_level(.data, .labels)
.data |
Data frame or tibble. |
.labels |
Output from |
Data frame or tibble
library(dplyr)
vlabels = extract_variable_label(colon_s)
colon_s %>%
select(sex.factor, obstruct.factor) %>%
tidyr::gather() %>%
mutate(
key = forcats::fct_relabel(key, labels_to_level, vlabels)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.