Re: [R] Removing duplicates from a list

2009-01-14 Thread Duncan Murdoch
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 __ R-help@r-project.org mailing list https:

Re: [R] Removing duplicates from a list

2009-01-14 Thread Gábor Csárdi
On Wed, Jan 14, 2009 at 2:19 PM, glenn wrote: > For a list say; > > list1<-{1,2,3,4,5,2,1} You mean list1 <- list(1,2,3,4,5,2,1) ?? See ?unique Gabor > > How do I remove the duplicates please? > My real list is 20,000 obs long of dates with many duplicates > > Regards > > Glenn > >[[a

Re: [R] Removing duplicates from a list

2009-01-14 Thread Henrique Dallazuanna
Try this: unique(list1) On Wed, Jan 14, 2009 at 11: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 > > Regards > > Glenn > >[[alternative HTML version deleted]] > >

Re: [R] Removing duplicates from a list

2009-01-14 Thread Dimitris Rizopoulos
have a look at ?unique(), e.g., unique(c(1,2,3,4,5,2,1)) I hope it helps. Best, Dimitris 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 ver

Re: [R] Removing duplicates from a list

2009-01-14 Thread baptiste auguie
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

Re: [R] Removing duplicates from a list

2009-01-14 Thread Daniel Malter
-project.org Betreff: [R] Removing duplicates from a list 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 dele

[R] Removing duplicates from a list

2009-01-14 Thread glenn
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@r-project.org mailing list https://stat.