Re: [R] sub setting data.frame

2011-02-28 Thread Nicolas Gutierrez
Got it.. thanks to Jorge! pop[1:which(with(pop, cumsum(cell) == 2)),] Nico 2/28/2011 12:08 PM, Ista Zahn wrote: I don't understand the question... On Mon, Feb 28, 2011 at 2:46 PM, Nicolas Gutierrez wrote: Hi All, I have a data.frame: pop consumed ind recruits gonad cell 1516.

Re: [R] sub setting data.frame

2011-02-28 Thread Ista Zahn
I don't understand the question... On Mon, Feb 28, 2011 at 2:46 PM, Nicolas Gutierrez wrote: > Hi All, > > I have a data.frame: > >>pop > >    consumed ind recruits   gonad cell > 1    516.74   1     0.02    20.21 0.25 > 2   1143.20   1     0.02    20.21 0.50 > 3    250.00   1     0.02    20.21 0

[R] sub setting data.frame

2011-02-28 Thread Nicolas Gutierrez
Hi All, I have a data.frame: >pop consumed ind recruits gonad cell 1516.74 1 0.0220.21 0.25 2 1143.20 1 0.0220.21 0.50 3250.00 1 0.0220.21 0.25 4251.98 1 0.0218.69 0.25 5598.08 1 0.0218.69 0.25 6437.38 1 0.02