Description Usage Arguments Details Value
Finds the ratio between two inputted matrices
1 | ratioF(input1, input2, rc)
|
input1 |
matrix 1 |
input2 |
matrix 2 |
rc |
ratio constant |
ratioF <- function(input1,input2,rc) {
input1[is.na(input1)] = 0
input2[is.na(input2)] = 0
input1 = input1 + rc
input2 = input2 + rc
ratio = input1/input2
#Recompress sparsematrix:
k <- matrix.sparse(ratio)
return (k)
}
The ratio of change between two matrices output as a sparse matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.