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/colnames.html
colnames {base}R Documentation

Column Labels

Usage

colnames(x)
colnames(x) <- namevector

Value

This function can be used to retrieve or set the column labels of a matrix.

See Also

dimnames, rownames.


[Package base version 0.60 ]