SortExposure: Sort columns of an exposure matrix from largest to smallest...

Description Usage Arguments Value

View source: R/exposure_related_functions.R

Description

Sort columns of an exposure matrix from largest to smallest (or vice versa)

Usage

1
SortExposure(exposure, decreasing = TRUE)

Arguments

exposure

Exposures as a numerical matrix (or data.frame) with signatures in rows and samples in columns. Rownames are taken as the signature names and column names are taken as the sample IDs.

decreasing

If TRUE, sort from largest to smallest.

Value

The original exposure with columns sorted.


steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.