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:
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
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]]
>
>
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
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
-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
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.
7 matches
Mail list logo