colnames(x) colnames(x) <- namevector
This function can be used to retrieve or set the column labels of a matrix.
dimnames, rownames.
dimnames
rownames