Dear friends
I have an array consist of r-rows and c-columns e.g.
x=c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,0,0,0,0,0,0,0,0); 
x1=array(x, dim=c(4,6))
output is
> x1
     [,1] [,2] [,3] [,4] [,5] [,6]
[1,]    1    2    3    4    0    0
[2,]    1    2    3    4    0    0
[3,]    1    2    3    4    0    0
[4,]    1    2    3    4    0    0
How can i ignore columns having zero sums? Help in this regard is needed. Thanks

 
M.Azam


      
	[[alternative HTML version deleted]]

