rownames can be used to retrieve or set the row labels of a matrix.
rownames
rownames(x) rownames(x) <- namevector