Learn R Programming

table1 (version 1.4.2)

label: Label attribute.

Description

Label attribute.

Usage

label(x)

label(x) <- value

setLabel(x, value)

has.label(x)

Arguments

x

An object.

value

A character specifying the label.

Functions

  • label<-: Set label attribute.

  • setLabel: Set label attribute.

  • has.label: Check for label attribute.

Examples

Run this code
x <- 1:10
label(x) <- "Foo"
x <- setLabel(x, "Foo") # Alternative syntax
has.label(x)
label(x)

Run the code above in your browser using DataLab