merge_duplicates: Merging the duplicates from the input matrix.

View source: R/EPIC_helper.R

merge_duplicatesR Documentation

Merging the duplicates from the input matrix.

Description

In case there are some duplicate rownames in the input matrix (mat), this function will return a similar matrix with unique rownames and the duplicate cases will be merged together based on the median values. When warn is true a warning message will be written in case there are duplicates, this warning message will include the in_type string to indicate the current type of the input matrix.

Usage

merge_duplicates(mat, warn = TRUE, in_type = NULL)

Arguments

mat

matrix

warn

warning

in_type

default is null


IOBR/IOBR documentation built on May 5, 2024, 2:34 p.m.