[R] Replicate

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Fri Sep 16 20:58:05 CEST 2005


On 16-Sep-05 Jim Porzak wrote:
> Hi Marc,
> 
>> x = c(1,1,1,2,2,2,3,3,3,3)
>> unique(x)
> [1] 1 2 3
> 
> Being a database guy myself, it took me a while to think "unique"
> rather than "distinct"

If you were a Unix guy you would have thought of it at once (though
you would want to spell it "uniq" :).

Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 16-Sep-05                                       Time: 19:13:45
------------------------------ XFMail ------------------------------




More information about the R-help mailing list