logpseudo: Add pseudo counts to a vector and Log-transform it

Description Usage Arguments Details Value Examples

View source: R/logpseudo.R

Description

This function takes a vector of values and returns the log10 transformed values adding a pseudo count to the values prior to the trasformation

Usage

1

Arguments

x

A vector of values

Details

The pseudo count equals half the minimum value, exluding zeros.

Value

A vector with the log10 transformation of the original values plus a pseudo count equal to half of the minimum of the positive original values

Examples

1
2
x <- c(10, 1000, 4, 0, 0.1)
logpseudo(x)

qenvio/dryhic documentation built on May 26, 2019, 11:35 a.m.