I have a lot of csv files with same rownames and colnames, I want combine them by row names, however, all of the examples I found just did it like stacking the data vertically.
for example what I can do now:
filenames <- list.files("C:/Users/Desktop/GCMS_experiment/Raw TIC_GCMS_experi", pattern=".csv", full.names=TRUE)
data <- rbindlist(lapply(filenames,fread))
then output this "Read 93.0% of 4323116 rows Read 4323116 rows and 5 (of 5) columns", this stacking my data, because for one csv file, I have 5 columns and 20684 rows (209 csv files in total).
what I want is combine them by rows,i.e gave me a final csv file containing 20684 rows, 209*5 columns. i.e combine data horizontally not stacking data vertically.
what should I do for the code? thank you