powered by
condenseMatrixByColnames(mx,iname,sep=";",cnt=FALSE)
a<-matrix(c(rep(rep(1:5,2),2),rep(1:10,2)),ncol=4) colnames(a)<-c("con.1","con.2","index.1","index.2") condenseMatrixByColnames(a,"con.1") condenseMatrixByColnames(a,2)
Run the code above in your browser using DataLab