avoidZero: Get rid of zeros in a numeric vector

Description Usage Arguments Value

View source: R/Regression.R

Description

Get rid of zeros in a numeric vector before taking the logarithm of them. We basically replace the "zeros" with a negligible small value in order to avoid NaN upon the log-transformation.

Usage

1
avoidZero(x, fac = 10)

Arguments

x

numeric values as input

fac

numeric a factor of scale in order to get a "small" value to replace zeros

Value

a vector of value with zeros replaced.


ELISAtools documentation built on Jan. 21, 2021, 5:08 p.m.