View source: R/e_data_var_labels_apply_from_table.R
e_data_var_labels_apply_from_table | R Documentation |
Apply labels to a dataset from a table of Var and Label
e_data_var_labels_apply_from_table(dat, var_labels)
dat |
a data.frame |
var_labels |
a data.frame with columns |
dat the same data.frame with attribute "label" added
dat <- tibble::tibble(a = 1:10, b = 11:20, c = 21:30)
var_labels <-
tibble::tribble(
~Var, ~Label
, "a" , "Var a Label"
, "b" , "Var b Label"
, "c" , "Var c Label"
)
dat |> str()
dat |> e_data_var_labels_apply_from_table(var_labels) |> str()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.