Learn R Programming

cata (version 0.0.10.9)

toWideMatrix: Converts 3d array of CATA data to a wide 2d matrix format

Description

Converts a three-dimensional array (I assessors, J products, M attributes) to a two-dimensional matrix (J products, (I assessors, M attributes))

Usage

toWideMatrix(X)

Value

A matrix with J products in rows and I

assessors * M attributes in columns

Arguments

X

three-dimensional array (I assessors, J products, M attributes) where values are 0 (not checked) or 1 (checked)

Examples

Run this code
data(bread)

# convert CATA results from the first 10 consumers and the first 4 attributes
# to a wide matrix
toWideMatrix(bread$cata[1:10,,1:4])

Run the code above in your browser using DataLab