[R] removing values from a vector, where both the value and its name are the same?

From: new ruser <newruser_at_yahoo.com>
Date: Fri, 15 Jun 2007 11:19:22 -0700 (PDT)

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_at_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. Received on Fri 15 Jun 2007 - 18:27:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Jun 2007 - 19:32:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.