
x
.
If na.rm
is TRUE
then missing values are removed before
computation proceeds.sd(x, na.rm = FALSE)
as.double(x)
.var
this uses denominator NA
s if na.rm = TRUE
) is not defined and gives an error.
The standard deviation of a length-one vector is NA
.var
for its square, and mad
, the most
robust alternative.