Hi Gianni,

Here is a link:  http://comments.gmane.org/gmane.comp.lang.r.general/255857

In my example, replace  "i <- i + length(d)"  with "write.table( )"

Robert



On Tue, May 15, 2012 at 1:15 PM, Sean O'Riordain <seanpor@acm.org> wrote:

> Hi Gianni,
> You don't say what you are doing with the data, and it doesn't appear
> from here to be very 'geo' :-)
>
> if you are using read.table() then there is the nrows=1000000 option -
> followed by write.table() in a loop etc...
>
> You could aways says readLines('blah.txt', n=1000000) followed by
> writeLines() in a loop...
>
> Outside of R, if you are on linux etc, then there is the "split -l
> 1000000" command.
>
> cheers,
> Sean
>
>
> On 15 May 2012 19:09, gianni lavaredo <gianni.lavaredo@gmail.com> wrote:
> > Dear Researchers,
> >
> > I am looking for a post or function to reading a txt file of 800 Mb of
> > 20,332,138 rows and split in sevarl chunk that each contain the same
> number
> > of points (i.e. each file of 1,000,000 except for the last one)
> >
> >
> > do you know any link or suggestions?
> >
> > Thanks in Advance
> > Gianni
> >
> >        [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

