envGrowthChanges: Generate growth changes induced by environment

Description Usage Arguments Value Examples

View source: R/envGrowthChanges.R

Description

Generate a matrix of growth changes for different environmental conditions. This vector can be supplied to generateDataSet to introduce environmental perturbation in the dataset. Note that the effect of environmental parameters is already summed, so only one growth change is provided per species per condition.

Usage

1
envGrowthChanges(species, env.factors = 2, conditions = 2, strength)

Arguments

species

Number of species

env.factors

Number of environmental factors

conditions

Number of environmental conditions

strength

Strength of environmental factors

Value

Matrix of growth changes, 1 column per condition.

Examples

1
2
3
klemm = generateA(N=10, type="klemm", c=0.5)
env = envGrowthChanges(species = 10, env.factors=2, conditions=2, strength=0.5)
dataset = generateDataSet(100, klemm, env.matrix = env, perturb.count = c(50, 50))

ramellose/NetworkUtils documentation built on May 26, 2019, 12:34 a.m.