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

sagarnikam123 sagarnikam123 at gmail.com
Sun Apr 22 09:04:19 CEST 2012


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:-
http://r.789695.n4.nabble.com/file/n4577757/rabata.txt rabata.txt 

--
View this message in context: http://r.789695.n4.nabble.com/how-to-avoid-newlines-tabs-in-file-opening-tp4577757p4577757.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list