If you know what 10 rows to read, then you can 'skip' to them, but it the
system still has to read each line at a time.

I have a 200,000 line csv file of numerics that takes me 4 seconds to read
in with 'read.csv' using 'colClasses', so I would guess your 100K line file
would take half of that.  Is 2 seconds of time a waste of resources?


On 3/11/07, Wensui Liu <liuwensui@gmail.com> wrote:
>
> Jim,
>
> Glad to see your reply.
>
> Refering to your email, what if I just want to read 10 rows from a csv
> table with 100000 rows? Do you think it a waste of resource to read
> the whole table in?
> Anything thought?
>
> wensui
>
> On 3/11/07, jim holtman <jholtman@gmail.com> wrote:
> > Why cann't you read in the whole data set and then create the
> subsets?  This
> > is easily done with 'split'.  If the data is too large, then consider a
> data
> > base.
> >
> > On 3/11/07, gnv shqp <gnvshqp@gmail.com> wrote:
> > >
> > > Hi R-experts,
> > >
> > > I have data from four conditions of an experiment.  I tried to create
> four
> > > subsets of the data with read.table, for example,
> > > read.table("Experiment.csv",subset=(condition=="1"))
> > > .  I found a similar post in the archive, but the answer to that post
> was
> > > no.   Any  new ideas about  reading subsets of data with read.table?
> > >
> > > Thanks!
> > >
> > > Feng
> > >
> > >        [[alternative HTML version deleted]]
> > >
> > > ______________________________________________
> > > R-help@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.
> > >
> >
> >
> >
> > --
> > Jim Holtman
> > Cincinnati, OH
> > +1 513 646 9390
> >
> > What is the problem you are trying to solve?
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@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.
> >
>
>
> --
> WenSui Liu
> A lousy statistician who happens to know a little programming
> (http://spaces.msn.com/statcompute/blog)
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

