ttmatrix: Construct a description matrix from a list of subsets names.

View source: R/ttmatrix.R

ttmatrixR 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") )

RAPLER/dst-1 documentation built on Oct. 15, 2024, 9:24 p.m.