A <- A[, colSums(A) != 0] (untested)
> Date: Thu, 26 Apr 2007 05:19:21 -0700 (PDT) > From: Milton Cezar Ribeiro <[EMAIL PROTECTED]> > Sender: [EMAIL PROTECTED] > Precedence: list > > Dear all, > > I have some matrices which colSums are equal to zero and I would like to > delete all them. > How can I do that? > > Kind regards, > > miltinho > Brazil > > __________________________________________________ > > > [[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 > and provide commented, minimal, self-contained, reproducible code. > > -- Giovanni Petris <[EMAIL PROTECTED]> Department of Mathematical Sciences University of Arkansas - Fayetteville, AR 72701 Ph: (479) 575-6324, 575-8630 (fax) http://definetti.uark.edu/~gpetris/ ______________________________________________ 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 and provide commented, minimal, self-contained, reproducible code.