[R] read.table for a subset of data
Wensui Liu
liuwensui at gmail.com
Mon Mar 12 03:26:09 CET 2007
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 at 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 at 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 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.
> >
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?
>
> [[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.
>
--
WenSui Liu
A lousy statistician who happens to know a little programming
(http://spaces.msn.com/statcompute/blog)
More information about the R-help
mailing list