Skip to content
Prev 325081 / 398503 Next

please check this

Hi,
Try this:
which(duplicated(res10Percent))
# [1] 117 125 157 189 213 235 267 275 278 293 301 327 331 335 339 367 369 371 379
#[20] 413 415 417 441 459 461 477 479 505
res10PercentSub1<-subset(res10Percent[which(duplicated(res10Percent)),],dummy==1)? #most of the duplicated are dummy==1
res10PercentSub0<-subset(res10Percent[which(duplicated(res10Percent)),],dummy==0)
?indx1<-as.numeric(row.names(res10PercentSub1))
indx11<-sort(c(indx1,indx1+1))
indx0<- as.numeric(row.names(res10PercentSub0))
?indx00<- sort(c(indx0,indx0-1))
indx10<- sort(c(indx11,indx00))

?nrow(res10Percent[-indx10,])
#[1] 452
?res10PercentNew<-res10Percent[-indx10,]
?nrow(subset(res10PercentNew,dummy==1))
#[1] 226
?nrow(subset(res10PercentNew,dummy==0))
#[1] 226
?nrow(unique(res10PercentNew))
#[1] 452
A.K.



----- Original Message -----
From: Cecilia Carmo <cecilia.carmo at ua.pt>
To: arun <smartpink111 at yahoo.com>
Cc: 
Sent: Monday, June 10, 2013 10:19 AM
Subject: RE: please check this

But I don't want it like this. 
Once a firm is paired with another, these two firms should not be paired again.
Could you solve this?
Thanks,
Cec?lia
Message-ID: <1370875166.90268.YahooMailNeo@web142602.mail.bf1.yahoo.com>
In-Reply-To: <104083AE5AAA634C993249DFCCE4C2030643B8D9@CIPRESTE.ua.pt>