[R] Inserting column in between

Bansal, Vikas vikas.bansal at kcl.ac.uk
Mon Aug 1 18:59:38 CEST 2011


Dear all,

I have a very simple question.I have data frame of 50 columns and i want to insert a column in 30th position.But i do not want to delete that column.Is it possible to include a column in between, so that new values are in 30th column and 30 th column is now 31st and 31st is 32nd......so on and 50th column is 51st..?I will be very thankful to you.


Thanking you,
Warm Regards
Vikas Bansal
Msc Bioinformatics
Kings College London


More information about the R-help mailing list