Description Usage Arguments Value See Also Examples
View source: R/analyzeDuplicatedPeptides.R
find duplicated entries in vector
1 | getListOfDuplicated(dataw)
|
dataw |
data |
list with indices of duplicated entries
analyzeDuplicated
for contex
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(SDat)
tmp = c("a","b","a","d","d","e","f")
res = getListOfDuplicated(tmp)
stopifnot(tmp[res[[1]]] == c("a","a"))
stopifnot(tmp[res[[2]]] == c("d","d"))
rownames = SDat$pepinfo$PeptideSequence
res = getListOfDuplicated(rownames)
rownames[res[[1]]]
rownames = as.character(SDat$pepinfo$ProteinName)
res = getListOfDuplicated(rownames)
stopifnot((unlist(lapply(res,length)) >= 2) == TRUE)
rownames[res[[1]]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.