.multMatByColNa | R Documentation |
This function allows multiplying values of 'mat' by its colnames and (optionally) summing along rows.
.multMatByColNa(
mat,
sumByRow = TRUE,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
mat |
(matrix) main input |
sumByRow |
(logical) |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
This functions returns a numeric vector or a matrix if sumByRow=FALSE
convToNum
mat1 <- 3 + matrix(1:4, ncol=2, dimnames=list(letters[1:2], c("3","2")))
.multMatByColNa(mat1)
.multMatByColNa(mat1, sumByRow=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.