> I provide all subjects as input and write the results into one .1D or .txt file. In this case, each subject’s values
> are added as a new column. The result is a file that contains as many columns as subjects.
Suppose that your 1D file is called Philipp.1D. I offer two approaches --
1) If the number of columns in Philipp.1D is N and N is not large, try
1dcat Philipp.1D'[0]'\' Philipp.1D'[1]'\' ... Philipp.1D'[N-1]'\' > out.1D
1dcat out.1D\' > out.1D (this line is necessary if you want the output to be one column instead of one row)
If N is large, create a loop to replace the first line above.
2) Do it in R:
x <- read.table('Philipp.1D') (use option 'skip' if you have some number of lines in the header)
write.table(c(x), file = "out.1D", quote = F, row.names = F, col.names = F)
Gang
Edited 1 time(s). Last edit at 01/01/2022 11:55AM by Gang.