Re: [R] Read file line by line

2011-06-16 Thread Prof Brian Ripley
On Thu, 16 Jun 2011, Joel wrote: Found what was wrong with my code Please follow the posting guide, and give the context asked for there. changed: inFile <- file('gwas_data_chr10.gen') to: inFile <- file('gwas_data_chr10.gen','r') Dunno why its important but it is :P You didn't open the f

Re: [R] Read file line by line

2011-06-16 Thread Joel
Found what was wrong with my code changed: inFile <- file('gwas_data_chr10.gen') to: inFile <- file('gwas_data_chr10.gen','r') Dunno why its important but it is :P -- View this message in context: http://r.789695.n4.nabble.com/Read-file-line-by-line-tp3602349p3602399.html Sent from the R help m

[R] Read file line by line

2011-06-16 Thread Joel
Hi I got a file that looks like this: (i have shorten it alot the real file is over 200k rows long) chr10 rs7909677 101955 A G 0 1 0 1 0 0... chr10 rs2436025 238506 C G 1 0 0 1 0 0... chr10 rs11253562 148946 C T 0 1 0 0 1 ... chr10 rs1105116 230788 G T 0 0 1 0 0 1... chr10 rs4881551 149076 A G 0