Skip to contents

This method returns the simulated species.

Value

A dataframe reporting mutant, epistate, growth_rate, death_rate, and switch_rate for each registered species.

Examples

# set the seed of the random number generator
set.seed(0)

# create a simulation
sim <- SpatialSimulation()
sim$add_mutant("A", growth_rate = 0.2, death_rate = 0.1)
sim$add_mutant("B", growth_rate = 0.15, death_rate = 0.05)

# get the added species and their rates. In this case, "A"
# and "B"
sim$get_species()
#>   mutant epistate growth_rate death_rate switch_rate
#> 1      A                 0.20       0.10          NA
#> 2      B                 0.15       0.05          NA