this is my dataframe:
df<-as.data.frame(matrix(rexp(200, rate=.1), ncol=20))
colnames(df)<-c("one","two","three","four","five","six","seven","eight","nine","ten","one_new","two_new","three_new","four_new","five_new","six_new","seven_new","eight_new","nine_new","ten_new")
How can I change the positions of this dataframe columns to have an output like this:
One | One_new | two | two_new | three | three_new|.....|ten | ten_new
any help?