marrayToMatrix: Transformation of an array data to its matrix representation

View source: R/marrayToMatrix.R

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


dst documentation built on Nov. 16, 2023, 5:08 p.m.