powered by
x
na.rm
TRUE
SD(x, weights = NULL, 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