PBalance | R Documentation |
This function calculates the balance that has at the numerator the bacteria placed at Num
and has at the denominator the bacteria placed at Dem
PBalance(A, Num, Dem, especie)
A |
Number. The balance will be calculated for t=1,2,..., |
Num |
vector that contains the position in the matrix |
Dem |
vector that contains the position in the matrix |
especie |
Matrix that contains at row i the bacterial taxa of bacteria i at all time points. |
Returns a vector with the value of the balance in each time point.
especie1=cbind(c(0.5,0.3,0.1,0.1), c(0.1,0.3,0.6,0.1))
Num=c(1,2)
Dem=c(3,4)
A=2
PBalance(A,Num,Dem,especie1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.