[R] how to avoid newlines tabs in file opening?

2012-04-22 Thread sagarnikam123
i have uploaded file,but when i am opening it in R,using u-file(file.choose(),r) k-readLines(u) k k[1:120] is has all /t (tabs) newlines, how to avoid it, can i take first 3 columns only in table form (lines starts with # not important for me) uploaded file:-

Re: [R] how to avoid newlines tabs in file opening?

2012-04-22 Thread Jeff Newmiller
How about, don't avoid them, use them? dta - read.table( http://r.789695.n4.nabble.com/file/n4577757/rabata.txt rabata.txt, as.is=TRUE, skip=4, sep=\t ) --- Jeff NewmillerThe . .

Re: [R] how to avoid newlines tabs in file opening?

2012-04-22 Thread Rui Barradas
Hello, sagarnikam123 wrote i have uploaded file,but when i am opening it in R,using u-file(file.choose(),r) k-readLines(u) k k[1:120] is has all /t (tabs) newlines, how to avoid it, can i take first 3 columns only in table form (lines starts with # not important for me) uploaded