R: an indicator matrix of response patterns or knowledge states.
N.R: either a (named) vector of absolute frequencies of response patterns; or a character vector of response patterns or knowledge states; or a set of sets representing the knowledge structure.
freq: logical, should the frequencies of response patterns be reported?
uniq: logical, if TRUE, only the unique response patterns are returned.
useNames: logical, return response patterns as combinations of item names.
as.set: logical, return response patterns as set of sets.
sep: character to separate the item names.
emptyset: string representing the empty set if useNames
is TRUE.
as.letters: deprecated, use useNames instead.
col.names: column names for the state or response matrix.
as.logical: logical, return logical matrix of states.
Returns
as.pattern returns a vector of integers named by the response patterns if freq is TRUE, else a character vector. If as.set is TRUE, the return value is of class set.
as.binmat returns an indicator matrix. If as.logical is TRUE, it returns a logical matrix.
is.subset returns a logical incidence matrix of the subset relation among states.