Description Usage Arguments Value Examples
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.
1 | foldchange(x, y, na.fc = NA)
|
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 |
A vector of same length as x containing the foldchange of y/x
1 | foldchange( c(5,Inf,0,6,0), c(0,1,2,3,0) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.