Assuming that you get the list of indices into iData for the criteria, then
you can use that to get the appropriate rows:

indx <- which(iData >5)  # or whatever your criteria is
DataSeq[indx,, drop=FALSE]  # gives you a subset matrix of just the rows you
are interested in.

On Thu, May 21, 2009 at 10:10 AM, tsunhin wong <thjw...@gmail.com> wrote:

> Dear R Users,
>
> I have created a 1500 x 20000 data frame - DataSeq. Each of the 1500
> rows represents a data sequence.
> I have another data frame iData that stores the information of these
> 1500 data sequences in the same order, for example, condition, gender,
> etc.
>
> If I use "subset" to select certain groups within iData according to
> some criteria that I have set, e.g. condition, gender
> Then how can I used the retrieved subset of iData to point to and
> retrieve corresponding rows in the DataSeq data.frame for
> manipulations and analysis?
>
> I hope some of you can give me some idea!
> Thank you very much!!!
>
> - John
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<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 that you are trying to solve?

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to