[R] Sum function and missing values --- need to mimic SAS sum function
Boris Steipe
boris.steipe at utoronto.ca
Tue Jan 27 01:42:20 CET 2015
> sum(x, na.rm=!all(is.na(x)))
That's the kind of idiom that brings the poor chap who has to maintain it to tears.
;-)
More information about the R-help
mailing list