Learn R Programming

dst (version 1.8.0)

marrayToMatrix: Transformation of an array data to its matrix representation

Description

The array representation or product space representation is converted to the matrix representation of the corresponding relation.

Usage

marrayToMatrix(mtt)

Value

The matrix representation of the data.

Arguments

mtt

The matrix tt of the relation in array format

Author

Claude Boivin

Examples

Run this code
 mtt <- array(c(1,0,0,0,1,1,0,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,1,1,1,1,1), c(2,2,8), 
 dimnames = list( RdWorks=c("Wy", "Wn") , Rain = c("Ry", "Rn"), ev=1:8) )
 print(z <- marrayToMatrix(mtt))

Run the code above in your browser using DataLab