powered by
x
na.rm
TRUE
sd(x, na.rm = FALSE)
as.double(x)
var
The standard deviation of a zero-length vector (after removal of NAs if na.rm = TRUE) is not defined and gives an error. The standard deviation of a length-one vector is NA.
NA
na.rm = TRUE
mad
sd(1:2) ^ 2
Run the code above in your browser using DataLab