removeDup | R Documentation |
Given the indices of the duplicated entries remove the columns and rows until just one is left, it keeps the duplicated with the highest absolute mean value.
removeDup(cor_mat, dupli)
cor_mat |
List of matrices |
dupli |
List of indices with duplicated entries |
A matrix with only one of the columns and rows duplicated
LluĂs Revilla
duplicateIndices()
to obtain the list of indices with
duplicated entries.
a <- seq2mat(c("52", "52", "53", "55"), runif(choose(4, 2)))
b <- seq2mat(c("52", "52", "53", "55"), runif(choose(4, 2)))
mat <- list("kegg" = a, "react" = b)
mat
dupli <- duplicateIndices(rownames(a))
remat <- removeDup(mat, dupli)
remat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.