toMatrix: Converts 3d array of CATA data to a tall 2d matrix format
Description
Converts a three-dimensional array (I assessors, J
products, M attributes) to a two-dimensional matrix with
(I assessors, J products) rows and (M
attributes) columns, optionally preceded by two columns of row headers.
Usage
toMatrix(X, header.rows = TRUE)
Value
A matrix with I assessors * J products in rows
and M attributes in columns (preceded by 2 columns)
of headers if header.rows = TRUE
Arguments
X
three-dimensional array (I assessors, J
products, M attributes) where values are 0 (not checked)
or 1 (checked)
header.rows
TRUE (default) includes row headers; set to
FALSE to exclude these headers