I can't change the data type of the names of my rows from character to integer. I tried following code:
rownames(transposed_data)=as.integer(rownames(transposed_data))
All the values are numbers and I don't get an error notification, but the data type remains unchanged.