Re: [R] help to extract data with R

2011-10-30 Thread Weidong Gu
One option is to use table to get the number of repeats tab<-table(tr1$time)==3 time3<-names(tab)[tab] tr1[tr1$time%in%time3,] Weidong Gu On Sun, Oct 30, 2011 at 5:10 PM, Zheng Lu wrote: > > > > > With the following dataset, trl =1, 2,3, how to extract data with the time > repeated 3 times. Fo

[R] help to extract data with R

2011-10-30 Thread Zheng Lu
With the following dataset, trl =1, 2,3, how to extract data with the time repeated 3 times. For example, I am only interested in the data records with time repeated 3 times. time=0.1 only has 1 time, we don't want it, time=0.3 only has two times, we don't want it, and so on. Thanks a lot.