label-set: Set Variable Label

Description Usage Arguments See Also Examples

Description

This function sets a label to a variable, by storing a character string to its label attribute.

Usage

1
label(var) <- value

Arguments

var

a variable (see is.variable for details)

value

a character value that is to be set as variable label

See Also

label

Examples

1
2
3
4
5
6
## Not run: 
label(mtcars$mpg) <- "fuel consumption"
x <- rnorm(100)
(label(x) <- "pseudo-random normal variable")

## End(Not run)


Search within the rapportools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.