[R] distinct elements of a vector

2009-08-27 Thread mirauta
Hello, I have the vector (a,b,a,c) and I trying to obtain it's distinct elements in another vector. Is there a function that can do this? Thanks, Bogdan -- View this message in context: http://www.nabble.com/distinct-elements-of-a-vector-tp25168032p25168032.html Sent from the R help mailing

Re: [R] distinct elements of a vector

2009-08-27 Thread Henrique Dallazuanna
Try : unique(c(a,b,a,c)) On Thu, Aug 27, 2009 at 10:48 AM, mirauta bmira...@yahoo.com wrote: Hello, I have the vector (a,b,a,c) and I trying to obtain it's distinct elements in another vector. Is there a function that can do this? Thanks, Bogdan -- View this message in context: