shift_negative_values: Shift negative values in a matrix

Description Usage Arguments Value

View source: R/io.R

Description

This function shifts negative values in a data matrix. For each column vector the procedure is as follows:

  1. A specific quantile is calculated from the vector

  2. If the quantile is negative then its absolute value is added to the vector

  3. Values that are still negative are truncated at 0

Usage

1
shift_negative_values(m, quantile.prob)

Arguments

m

The data matrix

quantile.prob

The quantile probability to use

Value

Return the transformed data matrix


ParkerICI/grappolo documentation built on April 8, 2021, 11:03 a.m.