imxGentleResize | R Documentation |
Resize an MxMatrix while preserving entries
imxGentleResize(matrix, dimnames)
matrix |
the MxMatrix to resize |
dimnames |
desired dimnames for the new matrix |
a resized MxMatrix
m1 <- mxMatrix(values=1:9, nrow=3, ncol=3,
dimnames=list(paste0('r',1:3), paste0('c',1:3)))
imxGentleResize(m1, dimnames=list(paste0('r',c(1,3,5)),
paste0('c',c(2,4,6))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.