I'm trying to add a column to a dataframe, I usually use the cbind
command for adding columns to the end of a dataframe. This time I want to insert a column and make it the first column in the dataframe.
I have found similar questions online but the suggested methods were really complicated, like establishing the dataframe from the beginning, is there a simple way to achieve this in one go?
I have a a matrix of 457 column and 9628 row.
Thanks,