marrayToMatrix {dst}R Documentation

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)

Arguments

mtt

The matrix tt of the relation in array format

Value

The matrix representation of the data.

Author(s)

Claude Boivin

Examples

 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))


[Package dst version 1.6.0 Index]