[R] Removing duplicates from a list

Duncan Murdoch murdoch at stats.uwo.ca
Wed Jan 14 14:30:08 CET 2009


On 14/01/2009 8:19 AM, glenn wrote:
> For a list say;
> 
> list1<-{1,2,3,4,5,2,1}
> 
> How do I remove the duplicates please?
> My real list is 20,000 obs long of dates with many duplicates

See ?unique.

Duncan Murdoch




More information about the R-help mailing list