From ligges at statistik.tu-dortmund.de  Mon Apr 11 17:25:40 2011
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Mon, 11 Apr 2011 17:25:40 +0200
Subject: [Rd] duplicates() function
In-Reply-To: <1302303928862-3437614.post@n4.nabble.com>
References: <4D9F22BE.5000502@gmail.com>
	<1302303928862-3437614.post@n4.nabble.com>
Message-ID: <4DA31D74.6030504@statistik.tu-dortmund.de>

Thanks for your answer, but:
1. can you please cite the question? It is hard for mailing list readers 
to follow now.
2. I think
    which(duplicated(x))
should be simpler, faster and less confusing, if your code would be the 
solution - which is not.
3. Please read the original question carefuly and find that your code 
and my optimization of it above gives a different undesired answer.

Best,
Uwe Ligges






On 09.04.2011 01:05, B77S wrote:
> which(duplicated(x)=="TRUE")
>
> --
> View this message in context: http://r.789695.n4.nabble.com/duplicates-function-tp3436584p3437614.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] duplicates() function
Uwe Ligges