[R] read.table for a subset of data

Wensui Liu liuwensui at gmail.com
Mon Mar 12 00:40:09 CET 2007


as far as I've know, I don't think you can do so with read.table. But
I am also thinking about RODBC and wondering if you could assign a DSN
to your .csv file and then use sql to fetch the subset.

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.
>


-- 
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