View source: R/marrayToMatrix.R
marrayToMatrix | R Documentation |
The array representation or product space representation is converted to the matrix representation of the corresponding relation.
marrayToMatrix(mtt)
mtt |
The matrix |
The matrix representation of the data.
Claude Boivin
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.