safelog: log transformation of matrix, i.e. count matrix

Description Usage Arguments Details Value

View source: R/formatting_p.R

Description

After specifying a minimum value, any value smaller than it would be filled with it and then applied with a log transform.

Usage

1
safelog(dat, min = 1e-05, logfun = "log2")

Arguments

dat

a vector or a matrix to be safe-log

min

a value specifying values to be filled if <=0

logfun

a log function to be applied, i.e. log, log10 and so on

Details

The user can specify a logfun for the transformation.

Value

the safe-logged result, a vector or a matrix depending on the dat input


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.