Re: [R] help with matrix column cleaning

2012-02-13 Thread David Winsemius
On Feb 14, 2012, at 12:46 AM, Vijayan Padmanabhan wrote: Dear R Group I have a matrix object in R, where i want to retain only those columns which have each row from a different group.. see the example below.. team1<-c("a1","a2","b1","b2","b3","c1","c2") teams<-combn(team1, 3) I want a funct

[R] help with matrix column cleaning

2012-02-13 Thread Vijayan Padmanabhan
Dear R Group I have a matrix object in R, where i want to retain only those columns which have each row from a different group.. see the example below.. team1<-c("a1","a2","b1","b2","b3","c1","c2") teams<-combn(team1, 3) I want a function which will delete all columns in the teams matrix that