Re: [R] Tab Separated File Reading Error

2013-10-04 Thread arun
Hi, Try: annoTranscripts<- read.csv("matched.txt", sep = '\t', stringsAsFactors = FALSE,quote="",header=FALSE)  str(annoTranscripts) 'data.frame':    367274 obs. of  12 variables:  $ V1 : chr  "comp103529_c0_seq1" "comp129123_c0_seq1" "comp129123_c0_seq1" "comp129124_c0_seq1" ...  $ V2 : chr  "XM

Re: [R] Tab Separated File Reading Error

2013-10-04 Thread William Dunlap
> > annoTranscripts <- read.table("matched.txt", sep = '\t', stringsAsFactors = > > FALSE) > Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : > line 5933 did not have 12 elements > > However, all lines do have 12 columns. > > > lines <- readLines("matched.txt") > .