[R] data import
Gabor Grothendieck
ggrothendieck at gmail.com
Wed Mar 22 00:51:26 CET 2006
Its possible the email system changed it but from what I
received there were no tabs in your sample data so this
would presumably work:
read.table(filename, fill = TRUE)
On 3/21/06, dai connie <connie_dly at hotmail.com> wrote:
> Hi, all
>
> nice to be in such a nice mailing list.
>
> I have a questions about importing a data with postfix xls. The data, each
> of which has different length, looks like
>
> 12 23 34 56 78 19
> 12 34 35 93 89 20 10 40
> 12 44 202 39 39 59 49 39 439
> ......
>
> I tried to save the data as txt file first and still confused how to read
> data with unequal
> lines. Seems each lines are separated by "\n" and each number by "\t". I
> tried the code like
>
> a<-read.table("b.txt",sep="\t",strip.white =TRUE, fill=T)
>
> and it turned out to be a disaster. I really need your help.
>
> Thanks a lot!
>
>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list