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. ______________________________________________ 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.