1  | 
x | 
|
crit | 
|
plotit | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  | ##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
## The function is currently defined as
function (x, crit = 2, plotit = FALSE) 
{
    x = elimna(x)
    x = as.matrix(x)
    if (ncol(x) == 1) {
        z = (x - mean(x))/sd(x)
        flag = abs(z) >= crit
        out.id = z[flag]
        n.out = sum(flag)
        nums = c(1:length(x))
        keep = nums[!flag]
    }
    if (ncol(x) > 1) 
        stop("Use function\tout with outfun=wmean.cov")
    list(n = length(x), n.out = n.out, out.value = x[flag], out.id = nums[flag], 
        keep = keep)
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.