######################################################################
#
# util.R
#
# copyright (c) 2002, Karl W Broman
# Licensed under the GNU General Public License version 2 (June, 1991)
#
# Utility functions for labstat package
# Contains: sem
#
######################################################################
# sem: calculate standard error of the mean
sem <- function(x) sd(x,na.rm=TRUE)/sqrt(sum(!is.na(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.