Skip to content
Prev 25909 / 398502 Next

Crawley's book on S-Plus and one strangeness

matej at ceplovi.cz (Matej Cepl) writes:
Can you be more specific?  Which datasets?
The var function was available in S long before the sd function was
introduced and many 'old-timers' instinctively use sqrt(var(x)) rather
than sd(x).  The sd function ends up calling sqrt(var(x, na.rm =
na.rm)) when argument x is a vector.