How to change the data type of my row names from character to integer?

I can't change the data type of the names of my rows from character to integer. I tried following code:


All the values are numbers and I don't get an error notification, but the data type remains unchanged.

row names are names so they are always character.
I recommend you dont use them anyway as they tend to confuse more than you would benefit from them, the benefits could be seen with lower cost from making them a regular column containing the same information.

The row names indicate dates. I could transpose my data so that they become the names of the columns. Can I then change the class to integer?
The reason I need to do this is because I'm working with a financial time series and all the dates became numbers (the number of days since 1899-30-12). I want to change them back to dates but in order to do so, I need them to be integers and not characters.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.