Skip to content
Prev 31280 / 398513 Next

sum(..., na.rm=TRUE) oddity

rohan sadler wrote:
Are you certain you typed 'na.rm'? I have occasionally typed 'rm.na' 
instead, and something like that might explain things:


 > sum(1,1,na.rm=TRUE)
[1] 2

 > sum(1,1,rm.na=TRUE)
[1] 3

Baz