Balance | R Documentation |
Defining a balance where we compare all the bacteria (except the one chosen as reference and the especieI
) with the one chosen as reference.
Balance(A, especieI, especie, E, EspecieMaxima)
A |
Number of time points for which we calculate the balance |
especieI |
Number. The bacteria that we do not include in the balance. We must write the number of the row in which the bacteria is placed in the matrix |
especie |
Matrix that contains at row i the bacterial taxa of bacteria i at all time points. |
E |
Number of bacteria available |
EspecieMaxima |
Row in which the bacteria chosen as reference is in |
Returns a vector with the value of the balance for all the time points indicated.
Balance(2,2,cbind(c(0.1,0.1,0.8),c(0.2,0.1,0.7)),3,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.