Hey everyone,
I just canât wrap my head around this problem: I got 2 Columns with 4
columns. They basically look like this:
1 2 3 4
⦠⦠⦠â¦
I want to merge the two CSVs into a two-column list, which should look like
this:
1 & 3 2 & 4
⦠â¦
⦠â¦
This is what I came up with so far:
files <- paste(list.files(files.dir, pattern = "*.csv"), sep = "")# Scan
mergedfiles <- do.call("rbind", lapply(files, read.csv)) # Merge
Obviously this will only merge the two CSVs into a four column list. Is there
any way to merge columns 1 & 3 and columns 2 & 4 of both files into a single
list?
Thanks and all the best
Kenji
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.