Use dimnames<-() on a data.frame object

USAGE:

dimnames<-.data.frame(x, value) 

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