[R] How to load a big txt file

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Thu Jun 7 11:53:49 CEST 2007


Erm... Is that a typo?  Are we really talking 23800 rows and 49 columns?
Because that doesn't seem that many....

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of ssls sddd
Sent: 07 June 2007 10:48
To: r-help at stat.math.ethz.ch
Subject: Re: [R] How to load a big txt file

Dear Chung-hong Chan,

Thanks! Can you recommend a text editor for splitting? I used UltraEdit
and TextPad but did not find they can split files.

Sincerely,

Alex

On 6/6/07, Chung-hong Chan <chainsawtiney at gmail.com> wrote:
>
> Easy solution will be split your big txt files by text editor.
>
> e.g. 5000 rows each.
>
> and then combine the dataframes together into one.
>
>
>
> On 6/7/07, ssls sddd <ssls.sddd at gmail.com> wrote:
> > Dear list,
> >
> > I need to read a big txt file (around 130Mb; 23800 rows and 49
columns)
> > for downstream clustering analysis.
> >
> > I first used "Tumor <- read.table("Tumor.txt",header = TRUE,sep =
"\t")"
> > but it took a long time and failed. However, it had no problem if I
just
> put
> > data of 3 columns.
> >
> > Is there any way which can load this big file?
> >
> > Thanks for any suggestions!
> >
> > Sincerely,
> >      Alex
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > 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
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> "The scientists of today think deeply instead of clearly. One must be
> sane to think clearly, but one can think deeply and be quite insane."
> Nikola Tesla
> http://www.macgrass.com
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list