[R] remove similar values

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Tue Jan 29 11:23:27 CET 2008


Romain Francois wrote:
> Hi,
>
> Not sure I understand the question, but maybe you need ?unique or 
> ?duplicated
>   

 Or maybe ?union, ?setdiff, ?intersection. Or ?merge.


> Cheers,
>
> Romain
>
> mohamed nur anisah wrote:
>   
>> hello!!
>>    
>>   say that i have the values of x1 and x2. my x1 has longer length than x2. how am i going to remove the similar values of x1 and x2.  Any suggestion?? Thanks in advance!!
>>    
>>   Cheers,
>>   Anisah
>>    
>>               e         f
>>  [1,]  17358865  17906353
>>  [2,]  17966995  21295547
>>  [3,]  21306539  27880531
>>  [4,]  27880531  34118702
>>  [5,]  34166504  35395488
>>  [6,]  36111044  36132622
>>  [7,]  36266288  37916920
>>  [8,]  36854306  43786190
>>  [9,]  43786190  44322336
>> [10,]  44322336  46302360
>> [11,]  45529444  53494622
>> [12,]  46302360  62105336
>> [13,]  53479132  63817440
>> [14,]  58567262  72637088
>> [15,]  60564442  79875476
>> [16,]  72637088  94545992
>> [17,]  79875476  96506368
>> [18,]  93155112 103123936
>> [19,]  94372260 116908456
>> [20,]  96643396 126190072
>> [21,] 103123936 127446552
>> [22,] 116908456 131781664
>> [23,] 131781664 154658264
>> [24,] 132968364 176302744
>> [25,] 135945080 181670472
>> [26,] 141788832 182625272
>> [27,] 149924864 182878168
>> [28,] 156539568 183946152
>> [29,] 157817896        NA
>> [30,] 162399496
>>   [31,] 168344072  
>>   [32,] 173146584  
>>   [33,] 176302744  
>>   [34,] 182878168  
>>   [35,] 183946152  
>>   [36,] 185068720  
>>   [37,] 190791232  
>>   [38,]        NA 
>>     
> --
> Introduction to R training course :: London :: 06-07 March 2008
> http://www.mango-solutions.com/services/rtraining/r_intro.html
>
> ______________________________________________
> R-help at 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.
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list