I have a=c(1,1,4,3,5); then > a [1] 1 1 4 3 5 is there any function to transform a to b: >b > a [1] 1 3 4 5 Thanks! --------------------------------- [[alternative HTML version deleted]]
<I have a=c(1,1,4,3,5); < then < > a <[1] 1 1 4 3 5 < < is there any function to transform a to b: < >b < > a <[1] 1 3 4 5 How about: unique(sort(a)) or sort(unique(a))> Thanks!-- Ken Knoblauch Inserm U371 Cerveau et Vision Dept. of Cognitive Neuroscience 18 avenue du Doyen L??pine 69500 Bron France tel: +33 (0)4 72 91 34 77 fax: +33 (0)4 72 91 34 61 portable: +33 (0)6 84 10 64 10 http://www.lyon.inserm.fr/371/