I would use 'lapply' to create a list of the matrices:
result <- lapply(c(10,20,30,40,50), function(.num){
do.call(cbind, lapply(c('Tableanalysis_firenze',
'Tableanalysis_siena', 'Tableanalysis_lucca'), function(.file){
read.table(sprintf("%s_%d.txt", .file, .num), header=TRUE)
}))
Dear R users,
thank for help. SORRY I am seeing in google a maillist but I didn't find a
solution for my problem
I have several txt file (with the same number of column and HEADER) to merge
together, this is an example:
Tableanalysis_firenze_10.txt
Tableanalysis_firenze_20.txt
Tablean
2 matches
Mail list logo