I'm trying to add header to the first column called "TYPE"-
this is the result I get:

this is the result I want:

thanks
I'm trying to add header to the first column called "TYPE"-
this is the result I get:

this is the result I want:

thanks
 
    
     
    
    I am not sure, my answer will be useful or not. But I faced same problem and I solved this problem in following way.
library(tidyverse)
rownames_to_column(mtcars,var = "Type") -> df
df
Thanks!!...
 
    
    I understand correctly you want to name... the row names there is no way to do this unless you get the row names and make a column of it You seem to think row names is a column
 
    
    col.names(yourtable)[1] <- "Type"
