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: > http://www.nabble.com/distinct-elements-of-a-vector-tp25168032p25168032.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@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.