| toMatrix | R Documentation |
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.
toMatrix(X, header.rows = TRUE, oneI = FALSE, oneM = FALSE)
X |
three-dimensional array ( |
header.rows |
|
oneI |
indicates whether calculation is for one assessor (default:
|
oneM |
indicates whether calculation is for one attribute (default:
|
A matrix with I assessors \times J products in rows
and M attributes in columns (preceded by 2 columns)
of headers if header.rows = TRUE
# convert CATA results from the first 8 consumers and the first 4 attributes
# to a tall matrix
toMatrix(bread$cata[1:8,,1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.