View source: R/variable_label.R
label_variable | R Documentation |
label_variable()
can be used to assign variable labels within a workflow
using the tidyverse's pipe operator.
label_variable(x, ...)
label_variables(x, ...)
x |
Either a vector or a |
... |
Variable label(s) to be assigned. For data frames, these have to be name-value pairs, see example. |
library(dplyr)
test <- npk %>%
label_variable(N = "Nitrogen", P = "Phosphate")
variable_label(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.