apply_evolution: Allows defining the function that changes the values of...

View source: R/evolution.R

apply_evolutionR Documentation

Allows defining the function that changes the values of traits of a given species at each time-step and in each site. If no operations are provided, traits are not changing

Description

Allows defining the function that changes the values of traits of a given species at each time-step and in each site. If no operations are provided, traits are not changing

Usage

apply_evolution(species, cluster_indices, landscape, config)

Arguments

species

the target species object whose traits will be changed

cluster_indices

an index vector indicating the cluster every occupied site is part of

landscape

the current landscape which can co-determine the rate of trait changes

config

the current config

Details

This function is called for any single species alongside an index for the geographical clusters within the species

Value

the mutated species traits matrix


gen3sis documentation built on Nov. 22, 2023, 5:07 p.m.