remove_dup | R Documentation |
Remove duplicates for specified columns of a data frame
remove_dup(x, cols)
x |
data frame |
cols |
character vector of column names from |
In Mass Spec data, there are occasionally duplicated entries that need to be
removed before further analysis. Duplication is indicated by the
Quan.Info
and PSM.Ambiguity
columns. remove_dup
removes
duplicates for certain columns, then collapses repeated information into a
single row.
This function is intended to be used after a call to
dplyr::group_by()
such that the removal of duplicates is
performed within each group of unique protein IDs (e.g.
Reporter.Quan.Result.ID
).
A data frame with potentially fewer rows than x
after
duplicated entries have been removed and repeated information has been
collapsed.
Derek Chiu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.