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 |
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.7.0 Index]