This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/names.html
names {base}R Documentation

The Names Attribute of an Object

Description

names provides access to the names attribute of a vector. The first form prints the names of the observations and the second sets the names. In this case, value must be a vector of character strings of the same length as x.

Usage

names(x)
names(x) <- value

Examples

# print the names attribute of the islands data set
names(islands)

# remove the names attribute
names(islands) <- NULL

[Package base version 0.60 ]