% Generated by roxygen2: do not edit by hand % Please edit documentation in R/merge_duplicated.R \name{merge_duplicated} \alias{merge_duplicated} \title{Function Duplicated Entries} \usage{ merge_duplicated( data, assay_index = 1, method = "mean", rownames_in_colum = F, index_rowname = 1, shorten_names = F, int_1 = 1, int_2 = 12, to_rownames = T, original_names = F, parallel = T, no_cluster = NULL, unnest = F ) } \arguments{ \item{data}{Matrix like object or summarized experiment with rownames.} \item{method}{Character - method for merging | "mean" ""median"} \item{index_rowname}{Integer - Index of column containing rownames} \item{shorten_names}{Logical - Should the row names be shortened to match patient IDs? | Careful for duplicates} \item{int_1}{Integer - First Integer for substr of row name} \item{int_2}{Integer - Second Integer for substr of row name} \item{to_rownames}{Locigal - use tibble::column_to_rownames at the end?} \item{unnest}{Logical - unnest colData if data is a SummarizedExperiment} \item{index}{Integer - assay index for summarized experiment} } \value{ } \description{ This function combines duplicated entries by a given mathematical method. (Like Mean, Median) } \details{ Per default it summarizes columns. When working with TCGA data, all patients or samples get a barcode. A patient can have multiple sample and thus far the first 12 characters of a ID represent a patient. Following characters specifiy the sample. Therefore, it is possible to have multiple samples of the same patient in an expression matrix. Nevertheless, the column names (samples) are unique. } \examples{ cl <- get_no_cores() }