Hi! Right, my solution did not take into accound paired negative values summing up to zero.
This should work in all cases: df[, which(colSums(df!=0)!=0)] Kind regards, Kimmo ______________________________________________ R-help@r-project.org 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.