Nothing
LE2incidence <- function(lst,
varmod = lapply(as.list(varlen), function(lst) 1:lst),
varlen = sapply(varmod, length)
)
UseMethod("LE2incidence")
LE2incidence.default <- function(lst,
varmod = lapply(as.list(varlen), function(lst) 1:lst),
varlen = sapply(varmod, length)
)
{
m <- prod(varlen)
res <- expand.grid(varmod[lst])[m:1,]
res <- res[,names(varlen)]
nam <- apply(res, 1, function(r) paste(r, collapse = ""))
res <- matrix(FALSE, m, m, dimnames = list(nam, nam))
res[lower.tri(res, diag = TRUE)] <- TRUE
try({
ord <- order(type.convert(names(rownames(res))))
res <- res[ord, ord]
})
class(res) <- "incidence"
return(res)
}
LE2incidence.list <- function(lst,
varmod = lapply(as.list(varlen), function(x) 1:x),
varlen = sapply(varmod, length)
) lapply(lst, function(x) LE2incidence(x, varmod, varlen))
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.