
Last chance! 50% off unlimited learning
Sale ends in
transf(x, type = c("tolist", "toarray"), lb2lb = FALSE, labels = NULL, ord, prsep)
toarray
' option, otherwise ignored)
tolist
' is the option to transform a matrix to a list of pair elements. In case that the lb2lb
is enabled in this type of transformation, then labels
must be provided, whereas the pair separator is optional. On the other hand `toarray
' will produce a matrix from a list of pair elements, and in this case is advisable to specify the order of the structure.For high dimensional arrays use the rel.sys
function in order to get the list of pair relations of the entire structure.
read.srt
, bundles
, reduc
, rel.sys
## scan the multiplication table data
s <- matrix(data=c(1, 1, 1, 3, 3, 3, 3, 3, 3), nrow=3, ncol=3, byrow=TRUE)
## transform the matrix to a list format
transf(s, lb2lb = TRUE, labels = c('n','m','<f1>'))
Run the code above in your browser using DataLab