I have a dataframe that looks like this, and would like to convert the left-most column into an actual index, with the label "id".
I tried to rename it with colnames<- but it didn't work, as ncol() only returns 2. I tried to export it as a csv file, but index was similarly not captured in the file.