ttmatrix {dst} | R Documentation |
Construct a description matrix from a list of subsets names.
Description
Construct a description matrix from a list of subsets names.
Usage
ttmatrix(x, sparse = "no")
Arguments
x |
A list of names |
sparse |
= c("yes","no") whether to use sparse matrix. Default = "no". |
Value
ttmat A corresponding logical description matrix
Author(s)
Claude Boivin
Examples
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") )
[Package dst version 1.7.0 Index]