I have these 3 dataframes:
df.1<-as.data.frame(matrix(rnorm(10),250,149))
df.2<-as.data.frame(matrix(rnorm(10),250,149))
df.3<-as.data.frame(matrix(rnorm(10),250,149))
I want to create another dataframe with these conditions:
the columns 1,4,7,10,...445 of df.4... will be the columns from df.1
the columns 2,5,8,11,...446 of df.4... will be the columns from df.2
the columns 3,6,9,12,...447 of df.4... will be the columns from df.3
In the ende my df.4 will have 3*149 columns.
How can I do this with dplyr package and its functions?
And most important, how can I mantain the names of my columns???
250x149(!) matrices to make your example reproducible?3*149 = 447columns