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(x) <- value

Arguments

x

a valid variable i.e. a non-NULL atomic vector that has no dimension attribute (see dim for details).

value

a character value that is to be set as variable label

See Also

label

Examples

1
2
3
4
5
6
7
## Not run: 
Label(religiosity$Religiosity) <- "Religiosity index"

vec <- rnorm(100)
Label(vec) <- "random numbers"

## End(Not run)

SciencesPo documentation built on May 29, 2017, 9:28 p.m.