Description Usage Arguments Details Value See Also Examples

The generic function `getCorrM`

returns the correlation matrix of several objects.

1 2 3 4 5 |

`object` |
An object of class Eval. |

`reactions` |
A boolean indicating whether reactions should be included in correlation matrix |

`bacs` |
A boolean indicating whether bacteria should be included in correlation matrix |

`substrates` |
A boolean indicating whether substrates should be included in correlation matrix |

Returns correlation matrix which can be used for statistical analysis

correlation matrix

1 2 3 4 5 6 7 8 | ```
data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
bac <- Bac(Ec_core,deathrate=0.05,
minweight=0.05,growtype="exponential") #initialize a bacterium
arena <- Arena(n=20,m=20) #initialize the environment
arena <- addOrg(arena,bac,amount=10) #add 10 organisms
arena <- addSubs(arena,40) #add all possible substances
eval <- simEnv(arena,5)
getCorrM(eval)
``` |

BacArena documentation built on May 9, 2018, 5:04 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.