[R] Simple question regarding name of column headers
    Addi Wei 
    addiwei at gmail.com
       
    Fri Jul 16 17:22:11 CEST 2010
    
    
  
names(miceTrainSample)
[1] "b_double"  "KierA2"    "KierFlex"  "Q_VSA_POS" "pID50" 
In the above code, how do I delete "pID50" column to store the resulting
object without indicating column "5".  The code below does the trick, but I
wish to delete the column by specifying "-pID50" instead of "5". 
names(miceTrainSample)[-5]
[1] "b_double"  "KierA2"    "KierFlex"  "Q_VSA_POS"
-- 
View this message in context: http://r.789695.n4.nabble.com/Simple-question-regarding-name-of-column-headers-tp2291534p2291534.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list