foldchange: foldchange

Description Usage Arguments Value Examples

View source: R/AllGenerics.R

Description

Returns the foldchange, or the non-0 value +1 (or its inverse) if one of the values is 0, or 1/NA (as specified) if both are zero.

Usage

1
foldchange(x, y, na.fc = NA)

Arguments

x

a numeric vector

y

a numeric vector of same length as x.

na.fc

the value to return is both x and y are 0

Value

A vector of same length as x containing the foldchange of y/x

Examples

1
foldchange( c(5,Inf,0,6,0), c(0,1,2,3,0) )

plger/RNAontheBENCH documentation built on May 25, 2019, 8:22 a.m.