envGrowthChanges: Generate growth changes induced by environment

View source: R/envGrowthChanges.R

envGrowthChangesR Documentation

Generate growth changes induced by environment

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

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

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))

hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.