[R] Vector indices

From: Werner Wernersen <pensterfuzzer_at_yahoo.de>
Date: Wed 18 Jan 2006 - 05:22:43 EST


Hi,   

  I am despairing of getting the indices for a vector:   First, I have a table from which I kick out a number of rows with na.omit. Next, I use this table for clustering with kmeans and cl$cluster contains my clusters. The cl$cluster is a vector which still contains my original indices from the very beginning, a kind of like an "associative" array. But how can I get a list of only these indices? When I use which() on the data it returns new indices starting from 1 to N together with the "old" indices but the "old" ones remain unaccessible.   

  It would be great if someone could give me a hand with that.   

  Thanks,
    Werner                    


        [[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 Received on Wed Jan 18 05:34:20 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:05 EST