powered by
Return the standard deviation of `x`. If no observations, return `NA`. This is a workaround for the fact that in data.table, `:= sd(x, na.rm = TRUE)` will return `NaN` where there are no observations
sd_na(x)
data potentially with non-finite values
Standard deviation of the input
# NOT RUN { sd_na(c(1,2,3,NA)) ## 1 # }
Run the code above in your browser using DataLab