[R] Removing duplicates from a list

baptiste auguie ba208 at exeter.ac.uk
Wed Jan 14 14:29:11 CET 2009


Your dummy data is not a reproducible example. I'm guessing ?unique  
could help you.

Hope this helps,

baptiste

On 14 Jan 2009, at 13:19, 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
>
> Regards
>
> Glenn
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.

_____________________________

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag




More information about the R-help mailing list