Off topic:Error While Combining Multiple Csv
1
0
Entering edit mode
12.1 years ago
Bmusungu ▴ 20
> files <- list.files(pattern=".csv")
> files
[1] "GDS2475.csv"       "GDS2477.csv"       "GSE12594_soft.csv"
[4] "GSE15435.csv"      "GSE20130.csv"     

> data()
> DF <- NULL
> for (f in files) {
+    dat <- read.csv(f, header=T, sep="\t", na.strings="", 
+ colClasses="character")
+    DF <- rbind(DF, dat)
+ }
Error in match.names(clabs, names(xi)) : 
  names do not match previous names
>

I saw this script for reading multiple csv files and combining. I got the error in the bottom. Any suggestions would be helpful, because I am new to R.

r microarray • 3.8k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2005 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6