Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getCorrM

Function to compute and return correlation matrix


Description

The generic function getCorrM returns the correlation matrix of several objects.

Usage

getCorrM(object, reactions = TRUE, bacs = TRUE, substrates = TRUE)

## S4 method for signature 'Eval'
getCorrM(object, reactions = TRUE, bacs = TRUE, substrates = TRUE)

Arguments

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

Details

Returns correlation matrix which can be used for statistical analysis

Value

correlation matrix

See Also

Examples

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

Modeling Framework for Cellular Communities in their Environments

v1.8.2
GPL-3 | file LICENSE
Authors
Eugen Bauer [aut], Johannes Zimmermann [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.