pseudo.transform: Transform object

pseudo.transformR Documentation

Transform object

Description

Similar to normal transform like log2 or log10. But keep 0 values as 0, to avoid Inf values and negtive values are made as -scale(abs(x)), to avoid NaN values.

Usage

pseudo.transform(x, scale = log2, by.reference = FALSE)

Arguments

x

a numeric vector or data.frame/data.table of numeric columns

scale

a function, default log2, which function to transform with.

by.reference

logical, FALSE. if TRUE, update object by reference if it is data.table.

Value

same object class as x, with transformed values


Roleren/ORFik documentation built on Oct. 19, 2024, 7:37 a.m.