[R] Fwd: Sum of a couple of variables of which a few have NA values

PetraOpic petraopic at gmail.com
Tue Jan 10 19:47:07 CET 2012


Dear Ivan,

Thank you very much for your help.

How do I use rowSums if I need to "skip" a variable from summing? (example:
sum var1, var2, var3, var5, var34 only).

Thanks in advance,
Petra Opic

--
View this message in context: http://r.789695.n4.nabble.com/Sum-of-a-couple-of-variables-of-which-a-few-have-NA-values-tp4282448p4282969.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list