try this:

> x[!(duplicated(names(x))&duplicated(x))]
  sum   min   max count count  test
   77     4     9     5     8    77



On 6/15/07, new ruser <newruser@yahoo.com> wrote:
>
> I have an array such as:
>
> x=c(sum=77, min=4,max=9, count=5, min=4,max=9, count=8 ,  test=77)
>
> I wish to remove values where both the name and the value are identical.
>
> eg. i wish to end up with:
> x2=c(sum=77, min=4,max=9, count=5, count=8, test=77)
>
> What is the "best" way to do this?
>
>
> ---------------------------------
> Park yourself in front of a world of choices in alternative vehicles.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

