label<- {rapportools} | R Documentation |
Set Variable Label
Description
This function sets a label to a variable, by storing a character string to its label
attribute.
Usage
label(var) <- value
Arguments
var |
a variable (see |
value |
a character value that is to be set as variable label |
See Also
Examples
## Not run:
label(mtcars$mpg) <- "fuel consumption"
x <- rnorm(100)
(label(x) <- "pseudo-random normal variable")
## End(Not run)
[Package rapportools version 1.1 Index]