Use dimnames() on a data.frame object

USAGE:

dimnames.data.frame(x) 

This is a method for the function dimnames() for objects inheriting from class data.frame. See dimnames for the general behavior of this function.