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

Description Usage Arguments Details Value

View source: R/evolution.R

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

1
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


ZHG2017/Rcpp-packageGen3sis documentation built on Dec. 18, 2021, 8:24 p.m.