ttmatrix | R Documentation |
Construct a description matrix from a list of subsets names.
ttmatrix(x, sparse = "no")
x |
A list of names |
sparse |
= c("yes","no") whether to use sparse matrix. Default = "no". |
ttmat A corresponding logical description matrix
Claude Boivin
subsets_names <- list(c("b", "c"), "b", c("a", "b", "c"))
ttmatrix(subsets_names)
znames <- list("empty", "a", c("b", "c"), c("a", "b"), c("a", "b", "c") )
print(ttmatrix(znames) )
print(ttmatrix(znames, sparse = "yes") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.