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]]

______________________________________________
R-help@r-project.org 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.

Reply via email to