SyntaxFix
Write A Post
Hire A Developer
Questions
I wanted to see all the indices for the colnames because I needed to do a complicated column rearrangement, so I printed the colnames as a dataframe. The rownames are the indices.
as.data.frame(colnames(df)) 1 A 2 B 3 C