[R] Deleting colmuns with 0's and also writing multple csv files

K. Elo maillists at nic.fi
Fri Feb 19 09:26:21 CET 2010


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



More information about the R-help mailing list