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