Thank you all,
tried all options and it gives me exactly what I needed! Many many thanks
again)
to Bert,
oh, I see, yes, next time I will do that.
Kristina
--
View this message in context:
http://r.789695.n4.nabble.com/subsetting-with-condition-tp3567193p3567645.html
Sent from the R help ma
Kristina:
You posed your question nicely, but it would help R HelperRs if you
used dput() to post your data for us to more easily copy and paste
into R in future.
Anyway, there are probably about a million ways to do this (see
especially the ddply package for organizing data), but one basic
appro
Try this:
subset(x, ave(x$ID, x$Pol., FUN = length) >= 3)
On Wed, Jun 1, 2011 at 8:00 PM, kristina p wrote:
> Dear R Team,
>
> I am a new R user and I am currently trying to subset my data under a
> special condition. I have went through several pages of the subsetting
> section here on the foru
On Jun 1, 2011, at 7:00 PM, kristina p wrote:
Dear R Team,
I am a new R user and I am currently trying to subset my data under a
special condition. I have went through several pages of the subsetting
section here on the forum, but I was not able to find an answer.
My data is as follows:
ID
Dear R Team,
I am a new R user and I am currently trying to subset my data under a
special condition. I have went through several pages of the subsetting
section here on the forum, but I was not able to find an answer.
My data is as follows:
ID NAME MS Pol. Party
5 matches
Mail list logo