SETGEN.grptab2list {SETGEN}R Documentation

Convert a data.frame with sets of variables to a list

Description

This function converts a data.frame with sets of variables to a list)

Usage

SETGEN.grptab2list(grptab)

Arguments

grptab A data.frame or matrix with (repeated) names of the source variables in the first column and names of the member variables of the sets in the second column. This is the format of the file with the extension ".details" optionally created by the function SETGEN.

Value

A list of sets of variables as returned by SETGEN.generate.sets or SETGEN and as needed for pre-specifying the sets to be tested in the parameter grpdata of the SETGEN function.

Author(s)

Beck, M.

See Also

SETGEN.grplist2tab

Examples

gt <- cbind(rep(c("g1","g2"),c(3,6)),letters[c(1:3,5:10)])
SETGEN.grptab2list(gt)

[Package SETGEN version 0.1 Index]