Dear R users,

the colSums function from the base package returns zero if there are no values 
in a range to be summed over (after removing missing values with na.rm = TRUE). 
Is there some way to make it return NA in that case just like colMeans does? Or 
any other function or some good way to achieve that? Any ideas are be welcome.

Regards,
Martin Ivanov

-----------------------------------------------------------------
Вижте последните новини във Vesti.bg!
http://www.vesti.bg/

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

Reply via email to