powered by
This function sets a label to a variable, by storing a character string to its label attribute.
label
label(var) <- value
a variable (see is.variable for details)
is.variable
a character value that is to be set as variable label
# NOT RUN { label(mtcars$mpg) <- "fuel consumption" x <- rnorm(100) (label(x) <- "pseudo-random normal variable") # }
Run the code above in your browser using DataLab