SyntaxFix
Write A Post
Hire A Developer
Questions
A version of John's answer above that removes the pesky NA's:
stderr <- function(x, na.rm=FALSE) { if (na.rm) x <- na.omit(x) sqrt(var(x)/length(x)) }