Skip to content
Prev 217188 / 398498 Next

sum() returns 0 not NA

Dear all,

just a stupid R question, since the results puzzle me a bit:
[1] 0
[1] NA
[1] NA
Why does sum(c(NA,NA), na.rm=TRUE) return 0 and not NA?

Thanks in advance,

Will