Nothing
# ----------------------
# Author: Andreas Alfons
# KU Leuven
# ----------------------
## 'simSapply' uses 'sapply' to return vector, matrix or list
setMethod("simSapply",
signature(x = "data.frame", design = "BasicVector", fun = "function"),
function(x, design, fun, ..., simplify = TRUE) {
s <- stratify(x, design)
simSapply(x, s, fun, ..., simplify=simplify)
})
setMethod("simSapply",
signature(x = "data.frame", design = "Strata", fun = "function"),
function(x, design, fun, ..., simplify = TRUE) {
xSpl <- lapply(getSplit(design), function(s, x) x[s,], x)
ca <- as.call(list(sapply, ...))
ca$X <- xSpl
ca$FUN <- fun
ca$simplify <- simplify
ca$USE.NAMES <- NULL # USE.NAMES is ignored
eval(ca)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.