powered by
The array representation or product space representation is converted to the matrix representation of the corresponding relation.
marrayToMatrix(mtt)
The matrix representation of the data.
The matrix tt of the relation in array format
tt
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))
Run the code above in your browser using DataLab