View source: R/generateDataSet.R
generateDataSet | R Documentation |
Generate an abundance dataset, with or without environmental perturbance, by using generalized Lotka-Volterra
generateDataSet(samples, matrix, env.matrix = NULL, perturb.count = NULL, count = 1000, mode = 4)
samples |
Number of samples |
matrix |
Interaction matrix (generated from generateA.R) |
env.matrix |
Growth rate changes induced by environment; 1 column per environmental condition. Generate this matrix with envGrowthChanges.R |
perturb.count |
Number of samples per environmental condition. Sum should be equal to total number of samples. |
count |
Total number of individuals in dataset |
mode |
Mode for generateAbundances; default value samples counts from Poisson distribution with lambda count/N |
The abundance dataset
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.